C# How to make a hollow rectangle with stars? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
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