SUBROUTINE f_TO_c(temperature_in_f) temperature_in_c ← (temperature_in_f –32) * 5/9 RETURN temperature_in_c ENDSUBROUTINE A function is run by calling it. To call it, a programmer uses the ...
There are two types of subroutine: Procedures perform a specific task but do not return a value. Functions manipulate data and return a value to the main program. A local variable is a variable ...