C-17-Q105mediumsingle_mcq
The structure used to create the triangle pattern is a:
The structure used to create the triangle pattern is a:
- aSingle
forloop - bNested
forloop (a loop inside another loop) - c
matchstatement - d
while-elseblock
ব্যাখ্যা
A nested for loop is required: the outer loop controls the rows and the inner loop prints the digits across each row, producing the triangular shape.