program main implicit none integer :: i,n,a,b,s print*, "enter the numbers of term" read*, n a = 0 b = 1 print*, a do i = 1, n-1 s = a+b print*, s b=a a=s end do end program main
To embed this project on your website, copy the following code and paste it into your website's HTML: