C:
#include <stdio.h>
double exp(double x, int cyc = 16) {
if(cyc < 1 || cyc > 64) {
return -1;
}
double res = 1.0;
double pof = 1.0;
for(int i = 1; i <= cyc; i++) {
pof *= x / i;
res += pof;
}
return res;
}
int main() {
double x;
printf("Enter a number: ");
scanf("%lf", &x);
printf("The expontent value of your input is: %lf\n", exp(x));
return 0;
}
