deyanivanov966

03. Square Area

Aug 21st, 2020 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class SquareArea {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scan = new Scanner(System.in);
  7.         int a =Integer.parseInt(scan.nextLine());
  8.         int area = a * a;
  9.         System.out.println(area);
  10.  
  11.     }
  12. }
Add Comment
Please, Sign In to add comment