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

a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1283


How can I direct output to the printer?

1371


Differentiate between a structure and a union.

1332


What is the data segment that is followed by c?

1137


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1288


how should functions be apportioned among source files?

1165


how to write a c program to print list of fruits in alpabetical order?

2363


Explain what is a stream?

1144


What is the scope of global variable in c?

1036


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1884


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1105


What are identifiers and keywords in c?

1198


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2843


Write a program to generate the Fibinocci Series

1300


Explain what is the concatenation operator?

1231