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

Where we use clrscr in c?

1119


main() { printf("hello"); fork(); }

1180


while initialization of array why we use a[][2] why not a[2][]...?

2342


When should a type cast be used?

999


What do you mean by command line argument?

1154


What is indirection in c?

1056


When should a far pointer be used?

1113


How can I remove the leading spaces from a string?

1139


What is the difference between local variable and global variable in c?

1212


What is logical error?

1102


What is a buffer in c?

989


Write a program to print factorial of given number without using recursion?

979


Explain how to reverse singly link list.

1125


What is the use of ?: Operator?

1124


What are pointers? What are different types of pointers?

1119