HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


50313 - Pattern Displays

Guest
• Review clarifications (1)

Volume problems

• 50896 - Sum of Even Numbers
• 51115 - Pascal Triangle
• 51116 - The Star Triangle
• 50303 - Pattern
• 50882 - FizzBuzz
• 50308 - IT Knowledge Seminars
• 50312 - Sales Bar Chart
• 50316 - Population Bar Chart
• 50313 - Pattern Displays
• 50320 - Random Sorted List
• 50336 - Buying Carpets
• 50338 - Convert Into Decimal
• 50295 - Weighted Average
• 50815 - Breaking the Bunker
• 50899 - How Many Years
• 50806 - TVSH
• 50820 - Post Office

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