Pseudocode for calculating area and perimeter of a rectangle.
INPUT length
INPUT breadth
COMPUTE Area = length * breadth PRINT Area
COMPUTE Perim = 2 * (length + breadth)
PRINT Perim
The flowchart for this algorithm is given in Figure.
Flowchart to calculate area and perimeter of a rectangle