C Program to find fibonacci series upto n terms
write(*,*)'Enter the terms you want see:'
read(*,*)n
i=1
j=1
write(*,*)'The series is:'
do l=1,n
write(*,*)i
k=i+j
i=j
j=k
end do
end
write(*,*)'Enter the terms you want see:'
read(*,*)n
i=1
j=1
write(*,*)'The series is:'
do l=1,n
write(*,*)i
k=i+j
i=j
j=k
end do
end
Comments
Post a Comment