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

int main()
{
unsigned int i=0,j=0,sum=1,num;
printf("nEnter the limit for the series ");
scanf("%d",&num);
while(sum<num)
{
printf("%d ",sum);
i=j;
j=sum;
sum=i+j;

}


getch();
}

Is This Answer Correct ?    14 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of c++?

1431


What does ctime() do?

1213


Explain the different access specifiers for the class member in c++.

1062


What is the use of string in c++?

1078


What is the main purpose of c++?

1107


what is data encapsulation in C++?

1125


Why c++ is better than c language?

1069


What is meant by iomanip in c++?

1290


Can we use this pointer in a class specific, operator-overloading function for new operator?

1149


What is a sequence in c++?

1074


What is ifstream c++?

1079


What is an arraylist c++?

1273


Do class declarations end with a semicolon?

1127


What is data abstraction? How is it different from data encapsulation?

1047


Can you please explain the difference between static and dynamic binding of functions?

1072