program homework
!This program solves the questions that is given by the teacher of BIL106E
!This program is for the third question of the homework.
!Purpose: Writing a program to read a Celsius temperature and convert it to Fahrenheit.
!F=(9*C/5)+32
IMPLICIT NONE
!Decleare the variables
real::F !Represents the temprature in degrees Fahrenheit
real::C !Represents the temprature in degrees Celsius
!Prompt the user for the input temprature.
Write(*,*)"Please enter the value of Celsius:"
Read(*,*)C
!This is the equation:
F=(9*C/5)+32
Write(*,*)"F=",F
end program homework
Hiç yorum yok:
Yorum Gönder