Computer Science, asked by sanskaargupta2708, 16 days ago

Take 2 sides of a quadrilateral from the user, check if it is a square or
rectangle. Print its area and perimeter accordingly.
a. Write an algorithm for the above situation.
b. Draw a flowchart for the above situation.

Answers

Answered by munjvighnesh09
1

Answer:

at=area of triangle

b=Bredth ,h=height.

Formula=0.5×b×h.

Algorithm:

-Step 1:-Start.

Step 2:-Declare at,b,has float.

Step 3:-Initialize value of b and h.

Step 4:-Calculate at 0.5×b×h.

Step 5:-print area of triangle .

Step 6:-End.

Similar questions