fork download
  1. PROGRAM Temperature_Conversion
  2. !----------------------------------------------------------------------------------------------
  3. ! Program to convert a temperature on the Celsius cale to the
  4. ! corresponding temperature on the Fahenheit scale.
  5. ! Variables used are:
  6. ! Calsius : temperature on the Calsius scale
  7. ! Fahrenheit : temperature on the Fahenheit scale
  8. !
  9. ! Input: Celsius
  10. ! Output: Fahrenheit
  11. !----------------------------------------------------------------------------------------------
  12.  
  13. IMPLICIT NONE
  14. REAL :: Celsius, Fahrenheit
  15.  
  16. ! Obtein Celsius temperature
  17. PRINT *, "Enter temperature in degroos Celsius:"
  18. READ *, Celsius
  19.  
  20. ! Calculate corresponding Fahrenheit temperature
  21. Fahrenheit = 1.8 * Celsus + 32.0
  22.  
  23. ! Display temperatures
  24. PRINT *, Celsius, "degrees Celsius =", &
  25. Fahrenheit, "degrees Fahrenheit"
  26.  
  27. END PROGRAM Tempoerature_Conversion
  28. ~
  29.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:27.35:

END PROGRAM Tempoerature_Conversion
                                   1
Error: Expected label 'temperature_conversion' for END PROGRAM statement at (1)
prog.f95:28.1:

~
 1
Error: Invalid character in name at (1)
Error: Unexpected end of file in 'prog.f95'
stdout
Standard output is empty