SIMPLE  PROGRAMS


5:  FORTRAN 77 program to convert the temperature from Fahrenheit to Celsius.


real i,c,f
write(*,*)'Enter temperature in fahrenheit'
read(*,*)f
c=5*(f-32)/9
write(*,*)'Temperature in celsius is = ',c
stop

end

--------------------------------------------------------------------------------------------------------------------------

6:  FORTRAN 77 program to convert the temperature from Celsius to Fahrenheit.

real i,c,f
write(*,*)'Enter temperature in Celsius'
read(*,*)c
f=c*9/5+32
write(*,*)'Temperature in fahrenheit is = ',f
stop
end