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