Online Java Compiler By
JavaTpoint.com
public class Log10Example1 { public static void main(String[] args) { double x = 38.9; // Input positive double, output logarithm of x System.out.println(Math.log10(x)); } }
Output