Write a program in Java to assign fractional numbers 16.0 and 25.0 . Print their square roots.
Answers
Answered by
14
Answer:
public class
{
public static void main (String []args)
{
double a,b,c,d;
a=16.0;b=25.0;
c=math.sqrt(a);
d=math.sqrt(b);
System.out.println("Square of a="+c);
System.out.println("Square of b=+d");
}
}
Here is ur solution it will surely work
Similar questions