✏️ Explanatory Question
Analyze the given program segment and answer the following questions:
for(int i=3;i<=4;i++ ) { for(int j=2;j
- How many times does the inner loop execute?
- Write the output of the program segment.
Analyze the given program segment and answer the following questions:
for(int i=3;i<=4;i++ ) { for(int j=2;j
Inner loop executes 3 times.
(For 1st iteration of outer loop, inner loop executes once. For 2nd iteration of outer loop, inner loop executes two times.)
Output:
WIN
WIN