Online Java Compiler By
JavaTpoint.com
public class Log10Example2 { public static void main(String[] args) { double x = 100000; // A power of 10 as input System.out.println(Math.log10(x)); } }
Output