Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Join our Q&A platform and connect with professionals ready to provide precise answers to your questions in various areas. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

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