by Dinesh Thakur Category: C Programming (Pratical)

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

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Search Content