ARITHMETIC SERIES AND PROGRESSION IN FORTRAN

The program below when run is expected to solve arithmetic series according to the data requested from the user.

program Arithemetic
!This program will calculate Arithemetic Series
implicit none
          integer :: i,a,b
          integer :: c
!a is first number
!b is the increment
!c is the number of terms
!i is the relation of do-loop
print*, 'Please enter your first term'
     read *, a
print*, 'please enter your increment term'
     read *, b
print*, 'please enter the last term'
     read *, c
          do i=a,c,b
               print*, i
          end do

end program Arithemetic


You only have to follow the steps very well

Comments

Popular posts from this blog

'To accomplish great things, we...O.F. AKEREDOLU

FACTORIAL IN FORTRAN

BIOGRAPHY OF WIZBLISS