Tuesday, March 31, 2015

Write a Fortran Program Convert Celsius to Fahrenheit


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
! Author: Mannaf
!temp conversation
program temp_conversition
    implicit none
    real ::fahrenheit,celsius
      print*,"type value celsius"
    read*,celsius
      print*,"celsius"
    fahrenheit=1.8*celsius+32.0
      print*, "fahrenheit=", fahrenheit
end program temp_conversition

5 comments: