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

#include<stdio.h>
void main(){
int i,j=1;
printf("%d\t",j);
for(i=1;i<6;i++){
j=j+i;
printf("%d\t",j);
}
}

Is This Answer Correct ?    6 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract data structure in c?

979


How do I use void main?

1056


What is fflush() function?

1083


What is a function simple definition?

1033


What is the use of volatile?

1047


What are directives in c?

930


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1804


What is a structure member in c?

959


What is this pointer in c plus plus?

1028


What does the format %10.2 mean when included in a printf statement?

1593


how to count no of words,characters,lines in a paragraph.

4380


Explain what does the format %10.2 mean when included in a printf statement?

1294


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

1051


Write a program to swap two numbers without using a temporary variable?

1074


What is meant by operator precedence?

1098