IDNLearn.com: Your trusted platform for finding reliable answers. Join our community to receive prompt and reliable responses to your questions from knowledgeable professionals.

This algorithm requires you to find the perimeter of 12 different squares.

Create the algorithm to prompt the user to enter the length of one side of a square.

The algorithm should calculate the perimeter of the square and display the result.

The algorithm must allow this to be repeated for all 12 squares.


Sagot :

Answer:

BEGIN

SET count = 1

WHILE count <= 12 THEN

     INPUT length

     perimeter = length * length

     PRINT perimeter

END WHILE

END

Explanation:

You can also set count to 0 and in while loop use count < 12 to loop just 12 times just as above