Advertisement
Spocoman

03. Rectangle Area

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