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
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDlTbWx6zjBWMEGFeuuHOyU2d6aNp1g_F5fbvrz1oBCdXJYrr7_2PQZin3c0kDSXLunLJ-bJ8EhCxl5N3lXdDGZUlLKmCTyVEdpibRS0zcIxQwp41rloChltz90gQVS_4xsjZiazN6Q8o/s400/1.png)
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
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDlTbWx6zjBWMEGFeuuHOyU2d6aNp1g_F5fbvrz1oBCdXJYrr7_2PQZin3c0kDSXLunLJ-bJ8EhCxl5N3lXdDGZUlLKmCTyVEdpibRS0zcIxQwp41rloChltz90gQVS_4xsjZiazN6Q8o/s400/1.png)
0 Comments
If you have further concerns, kindly drop a comment.