Example: Rectangle of N x N Stars

Write a program, which gets a positive integer n and prints in the console a rectangle of N x N stars.

Input Output Input Output Input Output
2 **
**
3 ***
***
***
4 ****
****
****
****

Hints and Guidelines

Testing in the Judge System

Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/512#1.

results matching ""

    No results matching ""