Problem-2
CodeChefOpen on judge ↗
Given the starting number and the height of the pyramid, print the appropriate pattern. Input: - The first line contains the starting integer of the pyramid. - The second line contains the height of the pyramid. Output: Print the pyramid with the appropriate pattern. Sample Input: 2 4 Sample Output: 2 4 3 7 6 5 11 10 9 8
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