You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
puinhs5w9/Logarithm.java

16 lines
376 B

4 years ago
package guangzhaowei;
import java.util.Scanner;
public class Logarithm {
public static void log() {
Scanner sc= new Scanner(System.in);
System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
double base=sc.nextDouble();
System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
double value=sc.nextDouble();
double result=Math.log(value)/Math.log(base);
System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"+result);
}
}