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.
|
package test;
|
|
|
|
import java.util.Scanner;
|
|
public class Logax
|
|
{
|
|
public static void main(String args[]) {
|
|
Scanner input = new Scanner(System.in);
|
|
int x=input.nextInt();
|
|
int a=input.nextInt();
|
|
double y=Math.log(a) / Math.log(x);
|
|
System.out.println(y);
|
|
}
|
|
}
|
|
|
|
|