HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Ad-Hoc > problem:


50313 - Pattern Displays

Guest
• Review clarifications (1)

Section problems

• 50253 - Timer
• 50294 - Centimeters to Yards
• 50298 - Coins
• 50303 - Pattern
• 50882 - FizzBuzz
• 50322 - Snake Pattern
• 50302 - Paper Scissors Rock
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50375 - Area of Circles
• 50393 - Palindromic Numbers
• 50396 - Cinema Tickets - 1
• 50325 - How much time passed?
• 50366 - Student Averages (2 Grades)
• 50406 - Draw Pattern 178
• 50416 - Placing Dominoes on Chess...
• 50477 - Character Pyramids

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