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
What is a hash function c++?
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.
Why is c++ still best?
What happens when the extern "c" char func (char*,waste) executes?
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
Explain the static storage classes in c++.
Is arr and &arr are same expression for an array?
By using c++ with an example describe linked list?
Differentiate between late binding and early binding.
What is c++ course?
Tell me what are static member functions?
What are the differences between new and malloc?
Describe public access specifiers?
Is map sorted c++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?