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 / techbots

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

Is This Answer Correct ?    34 Yes 53 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a hash function c++?

1039


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

2166


Why is c++ still best?

941


What happens when the extern "c" char func (char*,waste) executes?

1038


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1009


Explain the static storage classes in c++.

1215


Is arr and &arr are same expression for an array?

1023


By using c++ with an example describe linked list?

989


Differentiate between late binding and early binding.

1217


What is c++ course?

997


Tell me what are static member functions?

1046


What are the differences between new and malloc?

1070


Describe public access specifiers?

1062


Is map sorted c++?

963


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

1128