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 / psrthipan j

#include<iostream.h>
int main()
{
int x,y;
x=y=1;
while(x<20)
{
cout<<y<<end 1;
x=x+y;
y=x-y;
}
return 0;
}

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 scope operator in c++?

1083


Can a list of string be stored within a two dimensional array?

1000


Can member functions be private?

1005


What is the difference between structure and class?

1278


Can union be self referenced?

1158


What is constructor in C++?

1089


What is pointer to member?

1099


What is a set in c++?

977


When do we run a shell in the unix system? How will you tell which shell you are running?

984


What are the various storage classes in C++?

1142


What is a float in c++?

985


Describe exception handling concept with an example?

1053


What is endianness?

1100


Explain the concept of friend function in c++?

1115


Which ide is best for c++?

1049