This is C program where user asks to calculate the exponential value of Number. Exponential is known to a variables raised to the power of something. For example, 10 to the power of 2 is 100 (10x10). For this process user declare the required variables for this after assign the value to variable. User put out the method to find out exponential value. And fetch out the result as output on display.
This is C program that asks user to calculate the exponential power of a Number.
- Declare the variable.
- Using exponent method for the value.
- Display result on the screen.
Here is C source code for Calculate the exponential value for number. Output of this program shown below.
int main ()
double p, result;
p = 5;
result = exp (p);
printf ("Exponential of %lf = %lf\n", p, result );