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 the use of bit field?

1235


Explain what is the difference between a string and an array?

1224


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1155


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1127


What's a good way to check for "close enough" floating-point equality?

1254


Explain the difference between structs and unions in c?

1067


How can a program be made to print the line number where an error occurs?

1134


Are local variables initialized to zero by default in c?

1099


What are the advantages of the functions?

1219


What is the purpose of main( ) in c language?

1186


Why structure is used in c?

1238


Why is not a pointer null after calling free?

1073


Explain the difference between #include "..." And #include <...> In c?

1089


How can I read in an object file and jump to locations in it?

1071


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

1165