From bd48599f12b43a77544d36984e499aa359abe46b Mon Sep 17 00:00:00 2001 From: liuxiangyuan <1756148437@qq.com> Date: Thu, 6 Aug 2020 21:19:48 +0800 Subject: [PATCH] logax --- logax | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 logax diff --git a/logax b/logax new file mode 100644 index 0000000..47ef2d5 --- /dev/null +++ b/logax @@ -0,0 +1,15 @@ +package logax; + +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); + } +} + +