log10() : log of a number to the base 10

We will get log value of any number with base 10 by using log10() function.
x = input number


#include <stdio.h>
#include <math.h>
int main(void){
     double  x,ret;
     printf("log10(%.2f)=%.2f", x,ret);
     return 0;
The above code will give this output.
log10(2.70)= 0.43
Your Rating

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer