Latest Articles

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