Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class LiveDemo {
- public static void main(String[] agrs) {
- Scanner scanner = new Scanner(System.in);
- // S = a * a;
- int a = Integer.parseInt(scanner.nextLine());
- double area = a * a;
- System.out.println(area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement