C-17-Q148mediumsingle_mcq
In the chapter's number-triangle program, the inner loop variable j runs from:
In the chapter's number-triangle program, the inner loop variable j runs from:
- a0 up to but not including
i + 1 - b1 up to but not including
i + 1 - c
idown to 1 - d1 up to but not including 9
ব্যাখ্যা
In the triangle program the inner loop is written as range(1, i + 1), so j starts at 1 and stops before i + 1, printing i numbers on row i. This produces an increasing count of values per line.