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 / yogesh sharma

Try this.

#include<stdio.h>
void main()
{
int a=1,b,i=0;
while(i<=5)
{
a=a+i;
printf("%d \n",a);
i++;
}
getch();
}

Is This Answer Correct ?    98 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

2003


How many types of operators are there in c?

1020


what is a constant pointer in C

1130


What does char * * argv mean in c?

1045


can we change the default calling convention in c if yes than how.........?

2523


how we can make 3d venturing graphics on outer interface

4808


Tell me what is the purpose of 'register' keyword in c language?

996


Explain low-order bytes.

1019


What is the concatenation operator?

1133


What is the best way of making my program efficient?

1021


What are the types of c language?

1017


What is the easiest sorting method to use?

1148


Give me the code of in-order recursive and non-recursive.

1362


What is the use of function in c?

1179


Write a program to generate random numbers in c?

1084