HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab10 - CEN ECE > problem:


50466 - Drawing Square From Stars

Lab10 - CEN ECE

Start: Nov.28.2023 at 12:14:08 AM
Finish: Dec.14.2023 at 11:14:08 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (6)

Contest problems

• 50423 - Numbers square
• 50394 - Water Bills
• 50733 - The Highest Average
• 50366 - Student Averages (2 Grades)
• 50501 - The Highest Average
• 50463 - Drawing a Triangle
• 50466 - Drawing Square From S...
• 14-FallResit-10. 50537 - esreveR Tri...
• 14-Spr2-40. 50438 - Pattern with stars
• 15-Fall-01. 50806 - TVSH
• 15-FallHW-1. 50820 - Post Office
• 15-PE-3. 50867 - Average of the Be...
• 2013-04-60. 50295 - Weighted Aver...
• 9-P4. 50899 - How Many Years

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