Provide a loop with a menu. repeat until the user selects quit. prompt the user to select one of the menu items. test for numbers that are not in the menu, provide an error message, and then continue. the menu shall contain: 1. square pattern 2. triangle pattern 3. diagonal pattern 4. reverse diagonal pattern 5. quit after the user selects a pattern, allow them to specify the size. if the size is smaller than 1 or larger than 9, give them an error message and repeat the specification of the size. once the user has correctly selected a pattern and a size, print the pattern using the size specified.

Solved
Show answers

Ask an AI advisor a question