Question and answer is powered by AnsPress.io
I want to find out the square root of user input.
How can I do this?
class Root {
public static void main(String[] arguments) {
int number = 225;
System.out.println(“The square root of ” + number+ ” is “+ Math.sqrt(number) ); System.out.println(“Square”+Math.pow(10,2));
}
}