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

How the c program is executed?

1139


#include { printf("Hello"); } how compile time affects when we add additional header file .

1881


Explain what is a const pointer?

1071


What does int main () mean?

1006


What do you mean by a local block?

1074


Can a file other than a .h file be included with #include?

1156


Difference between pass by reference and pass by value?

1141


What are Macros? What are its advantages and disadvantages?

1144


Why do we use int main?

1087


What are pointers?

1090


What is the difference between mpi and openmp?

1269


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

5191


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1246


Explain what are its uses in c programming?

1042


In a switch statement, explain what will happen if a break statement is omitted?

1050