HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50959 - Draw the Pattern

Section problems

• 50894 - ASCII Codes
• 50897 - Prime Number
• 50901 - Sum of Cubes-1
• 50907 - Second Largest
• 50910 - Flipping Coins
• 50950 - Biggest Number
• 50957 - Divisible by 3
• 50975 - Cinema Tickets
• 50959 - Draw the Pattern
• 50898 - Draw the Pattern
• 50961 - Order of 3 Runner
• 50963 - Append Two Arrays
• 50968 - Number of Letters
• 50969 - Chef and Feedback
• 50888 - Extracting Digits
• 50893 - Print All Numbers
• 51109 - Integer to English

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.

Draw the Pattern

Write a program that asks user to type the value of N and then draws a pattern with numbers.

Input: A positive integer

Output: Triangular pattern with numbers

Sample Input1:

Sample Input2:

3

5

Sample Output1:

Sample Output2:

1

1 2

1 2 3

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

 

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

www.contester.ru