#include <stdio.h>
#include <math.h>
int main(void)
{
double x = 2.718282, y;
y = log(x);
printf("log(%f) = %f\n", x, y);
return 0;
}
【実行結果】log(2.718282) = 1.000000
▼戻る▼
「初心者のためのポイント学習C言語」 Copyright(c) 2000-2004 TOMOJI All Rights Reserved