Write a program to print a consecutive number pattern in a pyramid format, where row 1 has 1 number, row 2 has 2 numbers, and so on (e.g., row 1: 1, row 2: 2 3, row 3: 4 5 6).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.