Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is ur strangth & weekness

2420


What’s a signal? Explain what do I use signals for?

1105


Which one would you prefer - a macro or a function?

1077


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?

2540


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2123


How can you find the exact size of a data type in c?

1000


How do I read the arrow keys? What about function keys?

1082


write a programming in c to find the sum of all elements in an array through function.

2172


When we use void main and int main?

1075


What is difference between array and pointer in c?

1083


Explain setjmp()?

1066


Explain the use of 'auto' keyword

1120


Disadvantages of C language.

1100


can anyone suggest some site name..where i can get some good data structure puzzles???

2082


What is pointer in c?

1192