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 / n.muthukumar

#include

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

printf("%d",i);
while(sum
{
printf("%d ",sum);
i=j;
j=sum;
sum=i+j;

}



getch();
}

Is This Answer Correct ?    12 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are the features of c++ different from c?

1017


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

1010


Write about a nested class and mention its use?

1049


What is the c++ code?

1086


How is computer programming useful in real life?

1004


What are the methods of exporting a function from a dll?

1145


What is null c++?

1076


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1021


Write a Program to find the largest of 4 no using macros.

1034


What is a stack? How it can be implemented?

1129


How does list r; differs from list r();?

1091


What is enum class in c++?

1183


If a header file is included twice by mistake in the program, will it give any error?

996


write a porgram in c++ that reads an integer and print the biggest digit in the number

2209


Name four predefined macros.

993