32.
Write a program using
Function…..End Function to get temperature in Celsius from the user and then
print the temperature in Fahrenheit.(hint: F=9C/5+32)
DECLARE FUNCTION CONVERT (C)
CLS
INPUT “ENTER TEMPERATURE IN CELCIUS”; C
PRINT “TEMPERATURE IN FARENHEIT=”; CONVERT (C)
END
FUNCTION CONVERT (C)
F = 9 * C / 5 + 32
CONVERT = F
END FUNCTION
Thanks
ReplyDelete