HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


50313 - Pattern Displays

Guest
• Review clarifications (1)

Volume problems

• 045. 50462 - Class Average (3 Gra...
• 074. 50396 - Cinema Tickets - 1
• 080. 50248 - Power of two
• 090. 50456 - nth Digit of a Number
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly Pay
• 120. 50426 - Calculating Sales
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50316 - Population Bar Chart
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 003. 50358 - Series of Odd Numbers
• 005. 50297 - Divisible By Five
• 012. 50589 - The Number of Eggs Sold
• 030. 50584 - Total invoice amount
• 050. 50450 - Last Appereance of a ...

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.
Prepared by Halil Karimis.

Pattern Displays

Question:
Write a program that displays a pattern as below according to the entered number.

Input specification
You will be given just one integer number (n) which is 2 < n < 50.

Output specification
Print out the pattern that contains only the letter 'N' and spaces according to the given number (n).

Sample Run I  
  3

Sample Output I  
N N
NNN
N N

Sample Input II  
  5

Sample Output II  
N   N
NN  N
N N N
N  NN
N   N


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

www.contester.ru