Square Star Pattern Problem

Square Star Pattern Problem — ExecCode Easy DSA Practice

Solve the Square Star Pattern problem on ExecCode. Free online easy DSA practice in Patterns & Nested Loops. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Description You are given the input needed to solve Square Star Pattern. Your task is to compute the required answer and return n lines of n asterisks each. Integer n.

Examples

Input {"n": 1}; Output . Input {"n": 3}; Output . Input {"n": 5}; Output *

Constraints

Exact star count

Practice Square Star Pattern free on ExecCode. Browse DSA problems, topic map, and placement guides.