Question: What will be stored in the variable x after the loop ends? int x=1; for (int i=0; i <2; i++) { for (int j=i; j
What will be stored in the variable x after the loop ends?
int x=1; for (int i=0; i<2; i++) { for (int j=i; j<2; j++) { x = x+x; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
