#include <stdio.h>
#include <math.h>
main()
{
int x;
double y;
printf("Please input x:");
scanf("%d", &x);
if (x > 0)
{
y = exp(x);
}
else if (x < 0)
{
y = exp(x);
}
else
{
printf("y==1\n");
}
printf("y=%f\n", y);
}
c语言求e的x次方
最新推荐文章于 2023-11-21 22:27:05 发布