⏱ 00:00
Attempts:0
Best: 0/100
Grid & DimensionsTarget Time: 5 mins
Square Pattern
Given an integer N, print a solid N x N square grid of stars (*).
Input Format
A single integer N.
Output Format
Print N rows with N stars each.
Constraints:1 <= N <= 20
Concepts Required:
Double nested loop of equal dimensions N x NUniform line output
Expected Pattern PreviewASCII Monospace
***** ***** ***** ***** *****
Notice how character spacing and row counts scale systematically based on the input N.
Concrete Examples
Example 1
Input:
5
Output:
***** ***** ***** ***** *****
Explanation: 5 rows with 5 stars each.
