编程学习网为您整理以下代码实例,主要实现:C语言库exp()函数,希望可以帮到各位朋友。
#include <stdio.h>
#include <math.h>
int main () {
double x = 0;
printf("The exponential value of %lf is %lf\n", x, exp(x));
printf("The exponential value of %lf is %lf\n", x+1, exp(x+1));
printf("The exponential value of %lf is %lf\n", x+2, exp(x+2));
return(0);
}
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!