C# How to make a hollow rectangle with stars? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
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