57 questions
Hello :) School solves the descending output problem I solved it like thiss = sorted(list(input()))[::-1]Looking at the other answer,print(*sorted(input())[::-1],sep='')*and sep. It's my first time se...
running = trueWhile running: Guess= str(Enter the code:) If guess=='b2310' Print ('Ko Byung-jae') If guess=='b2321' Print ('Precious Award') If guess=='mk' running = falseprint ('end')If you o...
In C language, float type such as 37.7777779 37.777779 -> How do I round to the second decimal place, such as 37.78?
1 #!/usr/bin/env python 2 3 import os 4 import subprocess 5 import sys 6 import shlex 7 import matplotlib.pyplot as plt 8 import re 9 10 def runCommand(command): 11 popenArgs = shlex.split(command) 1...
Both activities share computational results as shared preferences.If you press the correct view in the activity where the four-point multiple questions are printed, The values of the keys totaltry and...
I was told not to use double or float when marking money. Why is that?I think there must be a good reason, but I don't know why.
I have imported a lot of Python libraries and have been using theminit of any file during error correction.I accidentally copied print 'en' to py and pressed the wrong key to turn off the file window....
We need a float raise function that runs like the code below math.h has ceil() and floor() but not round().Is it in another C++ library or not at all?float round(float);round(0.1) = 0round(-0.1) = 0ro...
Not the way I know itPlease tell me the easiest way to change the int type to string!//1.int a = 10;char *intStr = itoa(a);string str = string(intStr);//2.int a = 10;stringstream ss;ss << a;stri...
If I run the source code below,It says 3.14159265358979 instead of 3.14159Instead of rounding off the decimal point,What should I do to get the full price?int main(){ double d = 3.14159265358979; cout...
« | - 4 - | » |
© 2024 OneMinuteCode. All rights reserved.