Created
March 23, 2017 16:29
-
-
Save Ghost---Shadow/f52d965b3a735e7f93f11ec6f52e32a8 to your computer and use it in GitHub Desktop.
Multiply two numbers without multiplication operators, loops, recursion, bitwise etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main{ | |
public static void main(String[]args){ | |
float a = 5; | |
float b = 6; | |
System.out.println(Math.exp(Math.log(a)+Math.log(b))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment