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
- Previous: Write a C++ program with a class 'student' that has three attributes: name, roll, and marks. Use a get method to input data for two…
- Next: (a) Design a full adder circuit and draw the diagram. (b) Draw the X-OR and X-NOR gate truth table diagram.
- All questions in Cadet College Lecturer (ICT) May 2025 – Written