Java program for base 10 logarithm

Java program for logarithm junction

Program:-

import java.util.Scanner;

class group{
public static void main(String angt[]){
Scanner data = new Scanner(System.in);
double num,num1;
System.out.println("Enter a number");
num1=data.nextDouble();

num=Math.log10(num1);
System.out.println("log10 Answer:"+num);

}
}

Output:-

Enter a number
3
log10 Answer:0.47712125471966244




Learn Java:-
Java codes

Java Programs:-
List of Java Programs

Leave reply

Add your comments here

Back to Top