answersLogoWhite
C Programming

C program for exponential series?


Top Answer
User Avatar
Wiki User
2017-03-15 00:27:10
2017-03-15 00:27:10

exponential series

#include<stdio.h>

#include<conio.h>

#include<math.h>

void main()

{

int i,x,n;

float e=1,denominator=1;

clrscr();

printf("Enter the value of x,n\n");

scanf("%d,%d",&x,&n);

while(i<=n)

{

e+=(float)(pow(x,i)/denominator);

denominator*=i;

++i;

}

printf("answer is %f",e);

}

Related Questions

User Avatar

write a c program to accept a number and generate a square root cube and exponential values

User Avatar

find the program in c-pgms.blogspot.com

User Avatar

Exactly what do you mean by 'C program in Java'

User Avatar

1) forecasting for stationary series A- Moving average B- Exponential Smoothing 2) For Trends A- Regression B- Double Exponential Smoothing 3) for Seasonal Series A- Seasonal factor B- Seasonal Decomposition C- Winters's methode

User Avatar

write a program for Fibonacci series by using cunstructer ti initilised the value


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.