Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x;
- int y;
- Scanner scan = new Scanner(System.in);
- x=scan.nextInt();
- y=scan.nextInt();
- int a = (int)Math.pow((int)Math.pow(x,2)+(int)Math.pow(y,2) ,2);
- System.out.println(a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement