โ Back to Loops
Question 346
Rectangle of Stars
Rectangle of Stars
Read two numbers from input: the number of rows, then the number of columns. Use nested loops to print a solid rectangle of*characters. For input2then3the output is: *** ***
Expected Output:
*** ***
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.