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

Explain what is the benefit of using #define to declare a constant?

1101


Explain bit masking in c?

1087


Describe how arrays can be passed to a user defined function

1229


What is the difference between union and anonymous union?

1254


What is the difference between abs() and fabs() functions?

1066


write an algorithm to display a square matrix.

2649


What is array of structure in c?

1102


Do you know the use of fflush() function?

1016


How does free() know explain how much memory to release?

1016


What is the difference between arrays and pointers?

1072


What is exit() function?

968


What is pointer in c?

1145


What is static volatile in c?

980


Which built-in library function can be used to match a patter from the string?

1244


What is the difference between if else and switchstatement

1847