Aug-19-2018, 04:23 PM
thank you for your reply,
print(round(float(input('Enter a decimal number >'))))
print(bin(int(input('Enter it again >'))))
I enter this code and I got the result I should have:
Enter an integer >45
45
Enter it again >45
0b101101
And it is ok!
Thank you!!!!
print(round(float(input('Enter a decimal number >'))))
print(bin(int(input('Enter it again >'))))
I enter this code and I got the result I should have:
Enter an integer >45
45
Enter it again >45
0b101101
And it is ok!
Thank you!!!!