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

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

Is This Answer Correct ?    35 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is volatile variable in c?

1155


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2925


How can I do peek and poke in c?

1135


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2146


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1323


What is string function in c?

1049


Explain how can I make sure that my program is the only one accessing a file?

1275


Here is a neat trick for checking whether two strings are equal

1073


Is it better to use malloc() or calloc()?

1174


What is a void * in c?

1135


What's the right way to use errno?

1201


What is the use of function overloading in C?

1214


Why can't I perform arithmetic on a void* pointer?

1158


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2462


Is printf a keyword?

1259