Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class AreaRectangle {
- public static void main(String[] args) {
- Scanner width = new Scanner(System.in);
- int showWidth = width.nextInt();
- Scanner height = new Scanner(System.in);
- int showHeight = height.nextInt();
- int area = showWidth * showHeight;
- System.out.println(area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement