Table of Contents

How to Find Celsius to Fahrenheit

Example of Celsius to Fahrenheit
while True:
 print("Press 1 Celsius to Fahrenheit")
 print("Press 2 Fahrenheit to Celsius")
 print("Press 3 for Exit")
 a=input()
 if a=='1':
  x=int(input("Enter Celsius value :"))
  y=(x*9/5)+32
  print(y, "F")
 elif a=='2':
  x=int(input("Enter Fahrenheit Value :"))
  y=(x-32)*5/9
  print(y, "C")
 elif a=='3':
  break
 else:
  print("Wrong Input")
  print("Thank You")