Advertisement
desislava_topuzakova

01. Square Area

Apr 22nd, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class LiveDemo {
  4.     public static void main(String[] agrs) {
  5.  
  6.         Scanner scanner = new Scanner(System.in);
  7.  
  8.         // S = a * a;
  9.  
  10.         int a = Integer.parseInt(scanner.nextLine());
  11.         double  area = a * a;
  12.  
  13.         System.out.println(area);
  14.        
  15.  
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement