HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Ad-Hoc > problem:


50466 - Drawing Square From Stars

Guest
• Review clarifications (6)

Section problems

• 50294 - Centimeters to Yards
• 50303 - Pattern
• 50882 - FizzBuzz
• 50322 - Snake Pattern
• 50302 - Paper Scissors Rock
• 50396 - Cinema Tickets - 1
• 50366 - Student Averages (2 Grades)
• 50357 - Convert Euros into Dollars
• 50466 - Drawing Square From S...
• 50351 - Convert inches to cm
• 50356 - Hours Passed
• 50350 - Fahrenheit to Celsius
• 50355 - Bills of City Water Company
• 50467 - Random Numbers
• 50298 - Coins
• 50591 - Leap year
• 50312 - Sales Bar Chart

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