Sunday, 10 May, 2026

5:15 pm [NEPAL, GMT+5:45]

WAP that converts Centigrade Temperature to Fahrenheit Temperatures

Question:

Write a program that converts centigrade temperature to Fahrenheit temperatures. The formula is: F = (9/5)*C+32. F is the Fahrenheit temperature and C is the Centigrade temperature.

 

Ans:

      REM “Converts a temperature from Centigrade to Fahrenheit”

      CLS ‘Clear the screen

      INPUT “Enter the temperature in centigrade”; C

      F = C*(9/5)+32

      PRINT “The Fahrenheit value is”; F

      END

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.