Advertisement
Guest User

Untitled

a guest
Jul 11th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int x;
  2. int y;
  3.  
  4. Scanner scan = new Scanner(System.in);
  5.  
  6. x=scan.nextInt();
  7. y=scan.nextInt();
  8.  
  9. int a = (int)Math.pow((int)Math.pow(x,2)+(int)Math.pow(y,2) ,2);
  10.  
  11. System.out.println(a);
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement