The document contains code to calculate and compare the areas of two rectangles. It prompts the user to input the length and width of each rectangle, calculates their areas by multiplying length by width, and outputs a statement comparing which rectangle has the greater area or if they are equal.
The document contains code to calculate and compare the areas of two rectangles. It prompts the user to input the length and width of each rectangle, calculates their areas by multiplying length by width, and outputs a statement comparing which rectangle has the greater area or if they are equal.
The document contains code to calculate and compare the areas of two rectangles. It prompts the user to input the length and width of each rectangle, calculates their areas by multiplying length by width, and outputs a statement comparing which rectangle has the greater area or if they are equal.
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."
Ten-Decimal Tables of the Logarithms of Complex Numbers and for the Transformation from Cartesian to Polar Coordinates: Volume 33 in Mathematical Tables Series