HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


015. 50466 - Drawing Square From Stars

Guest
• Review clarifications (6)

Volume problems

• 001. 50385 - From m to n
• 002. 50365 - Sum of the numbers f...
• 002. 50452 - Multiplication Table
• 003. 50387 - Passengers in the Train
• 006. 50293 - Sum of odd numbers f...
• 007. 50401 - Sum of Odd Numbers
• 009. 50783 - The smallest number
• 010. 50782 - Max of N integers
• 015. 50466 - Drawing Square F...
• 016. 50463 - Drawing a Triangle
• 017. 50423 - Numbers square
• 018. 50344 - Profit or Loss
• 019. 50438 - Pattern with stars
• 020. 50408 - Molecules
• 022. 50366 - Student Averages (2 G...
• 023. 50437 - Age Labeling
• 026. 50399 - Mobile Base Station

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

Drawing Square From Stars

Question:
Write a program that gets a number n then, draws a rectangle from stars with the size nxn.

Input specification
You will be given a number (n) one side of the square where 0 ≤ n ≤ 35.

Output specification
Show a square from the * char (and every stars is followed by a space char).

Sample Input I   
4

Sample Input II   
6
Sample Output I   
* * * *
* * * *
* * * *
* * * *
Sample Output II  
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *


Для отправки решений необходимо выполнить вход.

www.contester.ru