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...

Describe for loop and write a c program to sum the series
X + x2/2! + x3 /3! + …….. up to fifteen terms.

Answer Posted / sai

#include<math.h>
void main()
{
int i,sum=0,x;
clrscr();
printf("enter x value");
scanf("%d",&x);
for(i=1;i<=15;i++)
sum=sum+((x*i)/fact(i));
printf("sum of x+x2/2!.......x15/15!=%d",sum);
getch();
}

Is This Answer Correct ?    10 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When a c file is executed there are many files that are automatically opened what are they files?

1087


Why can’t we compare structures?

1253


what do you mean by enumeration constant?

996


hi any body pls give me company name interview conduct "c" language only

2269


How can I discover how many arguments a function was actually called with?

1051


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2246


How many levels of pointers can you have?

1179


Why is it usually a bad idea to use gets()? Suggest a workaround.

1762


Why is c called c?

1000


What is a structure member in c?

991


What is the purpose of void pointer?

1016


What is the size of empty structure in c?

1070


Can a pointer point to null?

1051


Wt are the Buses in C Language

3202


Is c procedural or functional?

1005