Tuesday, June 9, 2009

My First Fortran Code : Temprature Conversion

!THIS CONVERTS celsius to farenheit

PROGRAM temp_conversion
IMPLICIT NONE
real :: far, cel
PRINT *, " Type The Value in Celsius "
READ *, cel
PRINT *, cel
far=1.8*cel+32.0
PRINT *, "Fareneit= ", far
END PROGRAM temp_conversion

3 comments:

  1. why the ancient language?

    ReplyDelete
  2. i thought u were planning to code the project in C?

    ReplyDelete
  3. yeah i know, but it turns out this is not as ancient as it looks... plus it is a really good tool to learn FORTRAN as it will be of great use to me later as most of the scientific coding is done in FORTRAN.

    ReplyDelete