This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class SquareRoot { | |
public static void main(String[] args) { | |
String input; | |
double sqrt, | |
roundoff; //Declaring Variable | |
System.out.println("To find Square Root"); //To print title Sq. root | |
System.out.println("Enter a Number : "); //Asking user input | |
Scanner keyboardInput = new Scanner(System. in ); //to get input |