write a program for fibonaci series by using while loop in c?
Answer Posted / shamantha
main()
{
int a=0,b=1,c,n;
printf("enter n value");
scanf("%d",&n);
Printf("%d%d",a,b);
while(n-2>0)
{
c=a+b;
printf("%d",c);
a=b;
b=c;
n=n+1;
}
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
what is ur strangth & weekness
What’s a signal? Explain what do I use signals for?
Which one would you prefer - a macro or a function?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
How can you find the exact size of a data type in c?
How do I read the arrow keys? What about function keys?
write a programming in c to find the sum of all elements in an array through function.
When we use void main and int main?
What is difference between array and pointer in c?
Explain setjmp()?
Explain the use of 'auto' keyword
Disadvantages of C language.
can anyone suggest some site name..where i can get some good data structure puzzles???
What is pointer in c?