Advertisement
_MuradPro_

targil 12

Sep 24th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class rererewrewrew {
  4.  
  5. public static void main(String[] args)
  6. {
  7. Scanner in = new Scanner(System.in);
  8. int length, width, RectangleArea;
  9. System.out.println("Enter the length:");
  10. length = in.nextInt();
  11. System.out.println("Enter the length:");
  12. width = in.nextInt();
  13. RectangleArea = length * width;
  14. System.out.println("The area of rectangle is: " + RectangleArea);
  15.  
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement