Programming Fundamentals/Variables/Pseudocode

variables.txt

edit
... This program converts an input Fahrenheit temperature to Celsius.

Function Main
    Declare Real fahrenheit
    Declare Real celsius
    
    Output "Enter Fahrenheit temperature:"
    Input fahrenheit
    Assign celsius = (fahrenheit - 32) * 5 / 9
    Output fahrenheit & "° Fahrenheit is " & celsius & "° Celsius"
End

See Also

edit