Computer Science, asked by anilaS36, 1 year ago

Write the colon input celsius and convert farhrenheit.​

Answers

Answered by Ayushrout
1
%Program to convert from F to C %Take the input from user ftemp = input('Enter your values in Degree Fahrenheit: '); %Convert the values from F to C using the conversion factor %C = (F – 32) * 5/9 ctemp = (ftemp-32)*5/9; %In the above statement you can also use (ftemp-32)*(5/9) or many other %combinations to avoid any problems with operator precedence. fprintf('%f F = %f C\n',ftemp,
Answered by varshu724
1

Hey mate.......

Answer:-celsius = input("Enter a temperature in Celsius: ") fahrenheit = (celsius * 2) + 30 print str(celsius) + " degrees in Celsius is " + str(fahrenheit) + " degrees in Fahrenheit" if celsius > 20: print "That's pretty warm!" Note the basic structure of the conditional statement above.

I hope so it was helpful

Similar questions