An Example
Function to convert given temperature from Fahrenheit to Celsius
HOW TO PRINT CELSIUS FROM a:
PUT (a-32)*5/9 IN c
WRITE a, "Fahrenheit =", 2 round c, "Celsius" /def to_celsius(a):
c = (a-32)*5/9
print(a + "Fahrenheit = %.2f",c + "Celsius" )void to_celsius(float a)
{
c = (a-32)*5/9;
printf("%f Fahrenheit is %.2f Celsius",a,c);
return;
}Last updated