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

Why is c++ a mid-level programming language?

1047


What is the basic structure of c++ program?

1106


What is rtti in c++?

1145


What is the difference between containment and delegation?

1338


What is data hiding c++?

1051


What are the two types of comments?

1003


How do you initialize a string in c++?

1008


List the special characteristics of constructor.

1184


What are shallow and deep copies?

1119


What are compilers in c++?

1074


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1037


Write a program to add three numbers in C++ utilizing classes.

1125


What is private inheritance?

1102


Difference between struct and class in terms of access modifier.

1199


What is an accessor in c++?

1079