Algorithm:
Step 1: Start
Step 2: Input Length and Breadth of the Rectangle (L, B)
Step 3: A = L * B
Step 4: P = 2 * ( L + B )
Step 5: Print “ Area of Rectangle “ A
Step 6: Print “ Perimeter of Rectangle “ P
Step 6: Stop/End
Flowchart:

Python code