C# How to make a hollow rectangle with stars? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C# How to make a hollow rectangle with stars?

A hollow rectangle with 80 columns and 25 rows should be written.

22nd May 2020, 10:34 PM
Hawktor
1 Answer
0
You should be able to do this with two for loops. The outer loop controls the row and the inner loop writes the stars or spaces.
25th May 2020, 8:05 PM
Matthew Shoop
Matthew Shoop - avatar