You are on page 1of 1

Babatla, Karl Lewin M.

BSCpE-1A

Declare Real
Display "Enter the length of rectangle number 1"
Input length1
"Display "Enter the width of rectangle number 1"
Input width1
Set area1 = length1 * width1

Display "Enter the length of rectangle number 2"


Input length2
Display "Enter the width of rectangle number 2"
Input width2
Set area2 = length2* width2

If area1 > area2 Then


Display "Area of rectangle 1 is greater than the area of rectangle 2."
Else If area2 > areal Then
Display "Area of rectangle 2 Is greater than the area of rectangle 1."
Else If areal = area2 Then
Display "Area of rectangle 1 is equal to the area of rectangle2."

End if

You might also like