Write the program for fibonacci in c++?
Answer Posted / n.muthukumar
#include
int main()
{
unsigned int i=0,j=0,sum=1,num;
printf("nEnter the limit for the series ");
scanf("%d",&num);
printf("%d",i);
while(sum
{
printf("%d ",sum);
i=j;
j=sum;
sum=i+j;
}
getch();
}
| Is This Answer Correct ? | 12 Yes | 25 No |
Post New Answer View All Answers
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is the benefit of c++?
What is the difference between a pointer and a link in c ++?
How many types of modularization are there in c++?
Does c++ have arraylist?
What are the benefits of operator overloading?
What is difference between array and vector in c++?
How can a called function determine the number of arguments that have been passed to it?
Which should be more useful: the protected and public virtuals?
Is it possible to write a c++ template to check for a function's existence?
Explain the difference between using macro and inline functions?
What language does google use?
What do you mean by storage classes?
What is fflush c++?
How the virtual functions maintain the call up?