Write a pseudocode for a program that would:
i) Prompt the user to enter the length and width of a rectangle.
ii) Calculate the area and perimeter of the rectangle.
iii) Display the results.
Answer:
Start
Set M=Length
Y=Width
Enter M,Y
Compute area = M*Y
Compute perimeter=2*(M+Y)
Display “Area of rectangle is”, area
Display “Perimeter of rectangle is”, perimeter
End