Question: JAVA HELP hello I would like help with this question in JAVA please. thank you Write a program that compares the area of two rectangles.
JAVA HELP hello I would like help with this question in JAVA please.
thank you
Write a program that compares the area of two rectangles. The program prompts the user for the height and width of both rectangles. You can assume the data type for height and width are int. The program will compare the area of both rectangles and use the if statement to decide if they have the same area, or one is larger than the other as described below: Both have the same area, it will print "Both rectangles have the same area." First has larger area, it will print "The first rectangle has larger area." Second has larger area, it will print "The second rectangle has larger area
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
