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 / aditya

#include<stdio.h>
int main()
{
int fir=1,nex=0;
for(nex=0;nex<6;nex++)
{fir=fir+nex;
printf("%d ",fir);

}}

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between int main and void main?

1095


What does d mean?

1165


What is return in c programming?

1021


What is the purpose of the statement: strcat (S2, S1)?

1223


Explain what are the different file extensions involved when programming in c?

1158


What is the difference between class and object in c?

1240


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1310


Explain how do you search data in a data file using random access method?

1175


diff between exptected result and requirement?

2113


Write a program on swapping (100, 50)

1166


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1261


What is structure of c program?

1229


What is a pointer value and address in c?

1182


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1137


Write a program to swap two numbers without using third variable in c?

1180