Computer Science, asked by ConstellationGuy, 15 hours ago

How will i increment in this snippet? Will it increase two times once in the for i loop and once in the for j loop?​ In java

Attachments:

Answers

Answered by usmansabuwala7
1

Answer:

First of all, i will remain 1 and j will increment depending on i. So j will be 1 to start with, and it'll become 2 later on. Because i was 1 in forst loop

Then i will become 2 and the loop of j will again get executed and j will increment again same way but this time j will become 3 in the end because i is now 2.

Similar questions