Computer Science, asked by sachinraj2323, 1 year ago

Write an algorithm and flowchart to find perimeter of rectangle

Answers

Answered by siddhartharao77
507
Algorithm :

START 
ACCEPT THE LENGTH OF RECTANGLE SAY L
ACCEPT THE BREADTH OF RECTANGLE SAY B
COMPUTE THE PERIMETER WITH THE HELP FORMULA P=2 * (L + B)
DISPLAY RESULT
STOP



The flowchart is explained in the image.
Attachments:

sachinraj2323: Thank you
Answered by krishna210398
30

Answer:

Answers is described below:-

Explanation:

#SPJ2

Algorithm to find the perimeter of the rectangle.

START

Step 1 - Take an integer variable a, b and p.

Step 2 - Assign the value to the variable a and b.

Step 3 - Do operation = 2*(a+b), were a = length of rectangle and b = breadth of rectangle

Step 4 - Assign the result of step 3 in p i.e p = 2*(a+b)

STOP

FlowChat to find the perimeter of the rectangle.

Attachments:
Similar questions