//https://csprograms4u.blogspot.com/
//Chapter 1
//Program 11
//Sq Root of a value
import
java.lang.Math;
import
java.util.Scanner;
public
class Square_Root
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
double x;
double y;
System.out.println("Enter any
positive integer value");
x=sc.nextDouble();
y=Math.sqrt(x);
System.out.println("Square Root of
"+ x + "is ="+y);
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.