Advertisement
Guest User

AreaRectangle

a guest
Apr 5th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class AreaRectangle {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         Scanner width = new Scanner(System.in);
  8.         int showWidth = width.nextInt();
  9.  
  10.         Scanner height = new Scanner(System.in);
  11.         int showHeight = height.nextInt();
  12.  
  13.         int area = showWidth * showHeight;
  14.  
  15.         System.out.println(area);
  16.  
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement