Menu



Java program for finding square root of a number


SquareRoot.java

import java.util.*;
public class SquareRoot
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int num;
System.out.print("Enter an integer number: ");
num=sc.nextInt();
System.out.println("Square Root of "+ num + " is: "+ Math.sqrt(num));
}
}










Connection failed: SQLSTATE[28000] [1045] Access denied for user 'studentdb'@'localhost' (using password: YES)

Subscribe