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

Write a c program to build a heap method using Pointer to function and pointer to structure ?

4665


How many main () function we can have in a project?

1097


What is volatile variable in c?

1076


Define macros.

1253


What is the difference between exit() and _exit() function?

1021


Should I learn c before c++?

1213


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

2158


What are all different types of pointers in c?

1001


What is c programming structure?

1176


What is string length in c?

1062


Which are low level languages?

1079


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1162


Describe explain how arrays can be passed to a user defined function

1083


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1137


How can I split up a string into whitespace-separated fields?

1046