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 the program for fibonacci in c++?

Answer Posted / kishor niit ottapalam

#include<iostream>
int main()
{
int x,y;
x=y=1;
while (x<200)
{
cout<<y<<endl;
x=x+y;
y=x-y;
}
return 0;
}

Is This Answer Correct ?    119 Yes 82 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why is c++ called oops? Explain

1102


what are the decision making statements in C++? Explain if statement with an example?

1146


Define friend function.

1112


How would you use qsort() function to sort an array of structures?

1167


What does h mean in maths?

1300


How do you master coding?

1092


What are c++ files?

1192


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

1153


Is there any function that can skip certain number of characters present in the input stream?

1127


Define pre-condition and post-condition to a member function in c++?

1199


Explain operator overloading.

1106


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2675


What is virtual destructor ans explain its use?

1170


What are vectors used for in c++?

1142


What does std :: flush do?

1190