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 / ashish tiwari

#include<stdio.h>
#include<conio.h>
void main()
{
int p=1,i;
for(i=1;i<=6;i++)
{
printf("%d ",p);
p+=i;
}
getch();
}

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between c and python?

1109


Why does everyone say not to use gets?

1030


What are the rules for identifiers in c?

1032


What are control structures? What are the different types?

1043


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2134


Is c procedural or object oriented?

956


Differentiate between ordinary variable and pointer in c.

1103


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

993


What does calloc stand for?

1089


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2698


What is #define?

1041


How can I open a file so that other programs can update it at the same time?

1134


What is the size of structure in c?

1099


What is abstract data structure in c?

979


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1338