#include stdio.h#include math.hint main () {double x, ret;x = 10000;/* finding value of log1010000 */
编程学习网为您整理以下代码实例,主要实现:C语言库log10()函数,希望可以帮到各位朋友。
#include <stdio.h>
#include <math.h>
int main () {
double x, ret;
x = 10000;
/* finding value of log1010000 */
ret = log10(x);
printf("log10(%lf) = %lf\n", x, ret);
return(0);
}