Skip to main content

Write a program in foxpro to generate fibonacci series.

                           
Ans:-
Input"Enter the last term of fibonacci series:-"to num
a=0
b=1
i=1
?a
do while(i<=num)
c=a+b
a=b
b=c
?a
i=i+1
enddo

Comments

Post a Comment

Popular posts from this blog

Important links

  Software Drive https://drive.google.com/drive/folders/1siws7oga-10wdlPhOdcjamlDH6wm0iE_?usp=sharing PPT Drive https://drive.google.com/drive/folders/1lNHhZ4_qlsyHrWA862DyBSvkF_J4YVp8 https://docs.google.com/document/d/1fo_4gFB4sgWfTBfZvK7qf0LP0y9ge1dH/edit

Python Practice questions

Reverse  Check substring in string  Armstrong no or not Palindrome  Table print  Power of the no Factorial