Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class rererewrewrew {
- public static void main(String[] args)
- {
- Scanner in = new Scanner(System.in);
- int length, width, RectangleArea;
- System.out.println("Enter the length:");
- length = in.nextInt();
- System.out.println("Enter the length:");
- width = in.nextInt();
- RectangleArea = length * width;
- System.out.println("The area of rectangle is: " + RectangleArea);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement