Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class _01_RectangleArea {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int widthOfRectangle = scan.nextInt();
- int heightOfRectangle = scan.nextInt();
- int areaOfRectangle = widthOfRectangle * heightOfRectangle;
- System.out.printf("The area of the rectangle is %d.", areaOfRectangle);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement