The fortran code below add different number you insert and perform addition operation to give output result.
Program addition ! add two number manually
implicit none
integer :: a
integer :: b
integer :: c
write (*,*)'what is the first value?'
read (*,*) a
write(*,*)'what is the second value?'
read (*,*) b
c = a + b
write(*,*)'The result is:', c
end program addition
PROGRAM RESULT
Program addition ! add two number manually
implicit none
integer :: a
integer :: b
integer :: c
write (*,*)'what is the first value?'
read (*,*) a
write(*,*)'what is the second value?'
read (*,*) b
c = a + b
write(*,*)'The result is:', c
end program addition
PROGRAM RESULT
0 Comments
If you have further concerns, kindly drop a comment.