c FORTRAN 77
c This program asks for the temperature. Based on the results of
c two logical expressions,
c it prints out whether the temperature entered is greater than 80
c degrees or less than 80 degress.
PROGRAM temperature
c Declare variables
REAL temp
c Prompt for and enter current temperature.
PRINT *,'What is the current temperature'
READ *,temp
c Determine temperature and print results.
PRINT*,'It is',(temp.gt.80.0),' that the temperature is greater than 80'
PRINT*,'degrees.'
PRINT*,'It is',(temp.lt.80.0),' that the temperature is less than 80'
PRINT*,'degrees.'
STOP
END