HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


51116 - The Star Triangle

Guest
• Review clarifications (4)

Section problems

• 51111 - Even Numbers
• 51115 - Pascal Triangle
• 51043 - Genome Sequencing
• 51116 - The Star Triangle
• 51042 - The most frequent k-mer
• 50271 - Factorial
• 50382 - Parkside's Other Triangle
• 51171 Question 3
• 51093 - rgb2gray
• 51165 Question 1
• 51175 Question 2
• 51092 - Even and Odd

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.

The Star Triangle

Question: Write a C++ program that will read the depth and print the Star Triangle up to input depth. The number of rows (n) will be entered by users and then a Star triangle will be generated in a 2D manner.

Input specification: A Positive integer.

Output specification: Star Triangle.

Sample Input Sample Output
3



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

www.contester.ru