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

1048


Is c++ high level programming language?

1077


How do you flush std cout?

1039


What are features of c++?

1107


What is the difference between method overloading and method overriding in c++?

1083


What are the advantages of c++?

1768


What is the hardest coding language to learn?

995


what are Access specifiers in C++ class? What are the types?

1150


How do you clear a map in c++?

1067


How does java differ from c and c++?

931


What is a null object in c++?

1153


Is c better than c++?

1023


What is the use of turbo c++?

1014


What is the use of main function in c++?

931


What are friend functions in C++?

1011