suchith madavu

suchith madavu

  • 1.5k
  • 108
  • 2.2k

C# console app to display solid square with asterisk (*)

Oct 3 2018 2:58 AM
If my input n=4 then it should display 4 dots in square shape as follows, 
* *
* *
if n=5 we cant display square with 5  asterisk mark , it should display square with maximun dots(*) here four. 
 
if n=9 then, 
* * *
* * *  
* * * 
 
again for n=10 it should display the same. Any hints 

Answers (3)