Showing posts with label addition of two numbers in fortran. Show all posts
Showing posts with label addition of two numbers in fortran. Show all posts

Sunday, June 4, 2017

Addition of Two Numbers in FORTRAN

Here is a very simple program that I wrote in FORTRAN that will accept two numbers and then it will compute and display the sum of the two numbers. The code is very easy to understand and use. You may download the FORTRAN compiler free from charge in this link http://www.fortran.com/the-fortran-company-homepage/whats-new/g95-windows-download/

Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.



Sample Program Output


Program Listing

add.f95

program add

implicit none

integer a,b,sum

print *,''
print *, ' Addition of Two Numbers in Fortran'
print *,''
print *,' Written By: Mr. Jake R. Pomperada'
print *,''
print *, ' Enter Two Numbers : '
read *, a,b
sum = a + b
print *,''
print *, ' The sum of ', a,' and ' , b, ' is ' , sum,'.'
print *,''
print *,'End of Program'
end program