Skip to content

Instantly share code, notes, and snippets.

@luisoos
Last active January 12, 2022 17:26
Show Gist options
  • Save luisoos/144206f33f0b45cbd37546ded4db4ea5 to your computer and use it in GitHub Desktop.
Save luisoos/144206f33f0b45cbd37546ded4db4ea5 to your computer and use it in GitHub Desktop.
Get the square root of a number in Java
public class Main {
public static void main(String[] args) {
System.out.println(Math.sqrt(2.5));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment