Wap to convert temperature in celsius into fahrenheit
DECLARE FUNCTION CONVERT (F)
CLS
INPUT “ENTER TEMPERATURE IN FAHRENHEIT”; F
PRINT “TEMPERATURE IN CELSIUS=”; CONVERT (F)
END
FUNCTION CONVERT (F)
C = (F – 32) * (5 / 9)
CONVERT = C
END FUNCTION
No comments:
Post a Comment