#include <stdio.h>
#include <math.h>
int main() {
double x;
double r = 1.0;
double t = 1.0;
printf("\nEnter the value for x: ");
scanf("%lf", &x);
for (int i=1; i<= x; i++)
{
t= x / i;
r= t;
}
printf("\n\nActual value of e^%lf is: %lf\n", x, exp(x));
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: