Problem Statement
Write a program that reads an integer N and prints a right-angled triangle made of consecutive numbers.
Each row i (from 1 to N) should contain the numbers from 1 to i, separated by spaces.
For example:
- Row 1:
1 - Row 2:
1 2 - Row 3:
1 2 3 - ...and so on up to row N.