Calculate Exponential Value of a Number
Turn Mobile View Off
by Dinesh Thakur

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.

Problem Statement:
This is C program that asks user to calculate the exponential power of a Number.

  1. Declare the variable.
  2. Using exponent method for the value.
  3. Display result on the screen.

Here is C source code for Calculate the exponential value for number. Output of this program shown below.

#include <math.h>
int main ()
      double p, result;
      p = 5;
      result = exp (p);
      printf ("Exponential of %lf = %lf\n", p, result );
      return 0;

Calculate Exponential Value of a Number

Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off