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...

please give code for this 1 2 4 7 11 16

Answer Posted / yogesh sharma

Try this.

#include<stdio.h>
void main()
{
int a=1,b,i=0;
while(i<=5)
{
a=a+i;
printf("%d \n",a);
i++;
}
getch();
}

Is This Answer Correct ?    98 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of control structures in programming?

1136


Is using exit() the same as using return?

1362


When we use void main and int main?

1090


can anyone please tell about the nested interrupts?

2125


Is a house a shell structure?

1165


write a program in c language to print your bio-data on the screen by using functions.

6789


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

1255


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1102


What is the symbol indicated the c-preprocessor?

1252


Explain the properties of union.

1087


What is the best way to store flag values in a program?

1081


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2178


Explain the use of #pragma exit?

1181


How do you construct an increment statement or decrement statement in C?

1238


What is structure packing in c?

1083