Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Robert Richardson   on Aug 12 In Java Category.

  
Question Answered By: Sheryl Morgan   on Aug 12

to get the square root  of a number,let's say 9 (w/c is 3) try this
one in your main method:

double anyNumber=9;
System.out.println("Square root: " + Math.sqrt(anyNumber));

Share: