pyramid
CodeChefOpen on judge ↗
Write a program to print the shown pattern. (With a number of rows = 5) ###Input: -The first and only line will contain the number of rows in the triangle. $N$ ###Output: -The triangle itself with $N$ rows. ###Constraints - $1 \leq A \leq 100$ ###Sample Input: 5 ###Sample Output: * * * * * * * * * * * * * * * * * * * * * * * * *
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start