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

What are the operators in c++?

1119


What are proxy objects in c++?

1191


What do c++ programmers do?

1065


Explain the difference between realloc() and free() in c++?

1019


What is lambda expression c++?

1063


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1082


What are the two main components of c++?

1103


Explain the register storage classes in c++.

1188


Difference between struct and class in terms of access modifier.

1195


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

2036


What do you mean by overhead in c++?

1095


Can member data be public?

1037


What is implicit conversion/coercion in c++?

1453


What can I safely assume about the initial values of variables which are not explicitly initialized?

1061


Is it possible to provide default values while overloading a binary operator?

1268