1Scanner in=new Scanner(System.in);
2int num=in.nextInt();
3Systen.out.println(Math.pow(num,0.5));
1Scanner in=new Scanner(System.in);
2int num=in.nextInt();
3System.out.println(Math.sqrt(num)); // the sqrt function gives a value in 'double' data type.