double log(double x);
#include <stdio.h> #include <math.h> int main(){ double a=3, b=40; //為變數賦初值 double c = log(a); //求3的對數 double d = log(b); //求40的對數 printf("%lft%lfn", c, d); return 0; }