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 / santhoshreddy katam

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

Is This Answer Correct ?    36 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we write return 0 in c?

1128


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

1179


Is there sort function in c?

1068


can anyone please tell about the nested interrupts?

2183


Is int a keyword in c?

1035


What is the difference between typedef and #define?

1112


What is %d used for?

1090


Can a void pointer point to a function?

1077


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2148


Explain the use of bit fieild.

1198


Why header file is used in c?

1156


Do you know null pointer?

1076


can we have joblib in a proc ?

2381


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1339


Write a factorial program using C.

1120