+ 3
Hi, how i write code that convert from F° to C° ?, in python , please help me
7 Answers
+ 2
Please show your attempt first
+ 2
C=(F-32)/1.8
That's all you need to know
+ 1
U can do it through switch. For further assistance you can also post your code so that we can tell you more alternatives
+ 1
C/5 = (F - 32)/9
0
i mean how do I make the user to choose between them and then the program will convert
0
c=int(input("Enter c"))
print(c*1.8+32)
f=int(input("Enter f"))
print(f-32*1.8)
I wrote this, but it'll print it all out , I don't want to, I just want to know how to make the user to choose .