कंप्यूटर प्रोग्रामिंग/सबरूटीन्स/स्यूडोकोड
Temperature.txt
सम्पादनMain
सम्पादनThis program converts a Fahrenheit temperature to Celsius. DECLARE F DECLARE C CALL GetF RETURNING F CALL CalculateC WITH F RETURNING C CALL DisplayResult WITH F, C
GetF
सम्पादनDECLARE F DISPLAY "Enter Fahrenheit temperature:" INPUT F RETURN F
CalculateC
सम्पादनPARAMETER F DECLARE C CALCULATE C = (F - 32) * 5 / 9 RETURN C
DisplayResult
सम्पादनPARAMETER F, C DISPLAY F & "° Fahrenheit is " & C & "° Celsius"