Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ScannerTest {
- public static void main(String[] args) {
- Scanner scann = new Scanner(System.in);
- System.out.println("Enter your number:");
- int a = scann.nextInt();
- double result = Math.sqrt(a);
- System.out.println(a);
- System.out.printf("'%.5f'%n", result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement