Square of Stars (Baby Steps)

Draw a square of stars: n lines, and each line has n stars () with no spaces.

Input: One integer n (1 to 20).

Output: n lines of n stars.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Make one line of n stars with a loop.

More Baby Steps practice