answersLogoWhite

0

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);

}

User Avatar

Wiki User

8y ago

What else can I help you with?

Related Questions

Write a c program to accept a numbers and generate square root cube and exponential values?

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


Program for sin series in c language?

find the program in c-pgms.blogspot.com


Write a c program Fibonacci series using for loop in java?

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


What are forecasting models?

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


Write a c program to solve cos series?

Please do.


Which exponential equation is equivalent to cin2?

To express ( \ln(2) ) in exponential form, we can use the property of logarithms. The equation ( c \ln(2) ) is equivalent to ( e^{c \ln(2)} = 2^c ). Thus, the exponential equation equivalent to ( c \ln(2) ) is ( 2^c ).


Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


What is the difference of exponential functions and geometric series?

chicken


Can you explain the program of Fibonacci series in c?

You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?


What is the c program to find fibnocci series?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { }


How do you write a C program to Calculate the Series. The Value of x and n must take from input terminal.?

Reference:cprogramming-bd.com/c_page2.aspx# sum the series


Program to generate Fibonacci series using storage class in c plus plus?

i dn't know. haha