HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Ad-Hoc > problem:


50313 - Pattern Displays

Guest
• Review clarifications (1)

Section problems

• 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
• 50313 - Pattern Displays
• 50393 - Palindromic Numbers
• 50375 - Area of Circles
• 50325 - How much time passed?
• 50580 - Days passed

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