Skip to content

Instantly share code, notes, and snippets.

@Ghost---Shadow
Created March 23, 2017 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ghost---Shadow/f52d965b3a735e7f93f11ec6f52e32a8 to your computer and use it in GitHub Desktop.
Save Ghost---Shadow/f52d965b3a735e7f93f11ec6f52e32a8 to your computer and use it in GitHub Desktop.
Multiply two numbers without multiplication operators, loops, recursion, bitwise etc
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