Computer Science, asked by iraishitajoshi, 12 hours ago

Write an algorithm to draw a rectangle.

Answers

Answered by ms8367786
3

Answer:

Define the width of the rectangle.

Define the Height of the rectangle.

Define Area of the rectangle.

Calculate the area of the rectangle by multiplying the width and height of the rectangle.

Assign the area of the rectangle to the area variable.

print the area of the rectangle.

Answered by ANSHIKA089
2

Answer:

Algorithm

1)Define the width of the rectangle.

2)Define the Height of the rectangle.

3)Define Area of the rectangle.

4)Calculate the area of the rectangle by multiplying the width and height of the rectangle.

5)Assign the area of the rectangle to the area variable.

6)print the area of the rectangle.

Similar questions