C语言库exp()函数

#include stdio.h#include math.hint main () {double x = 0;printf(The exponential value of %lf is %lf\\n, x, exp(x));

编程学习网为您整理以下代码实例,主要实现: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);
}

本文标题为:C语言库exp()函数

基础教程推荐