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

What is sequential flow chart?

These types of flow chart indicates that the flow of control normally passes from one instructions to the next in a sequence with in a programme. Example :- design a flow chart to calculate addition of two number                          

React Js interview questions

 

Math notes

Supremum   math Logical math Recurrence Relation