Find out the output of this program. for (int i= 5; i>=1; i--) { for (int j=1; j<=i; j++) { printf("%3d", j); } }

Find out the output of this program.

for (int i= 5; i>=1; i--) {
    for (int j=1; j<=i; j++) {
        printf("%3d", j);
    }
}

From the Cadet College Lecturer (ICT) May 2025 – Written exam, question 3 of 10.

More from this paper