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