Question: What is the value of sum after the code is executed? And What is the value of i after the code is executed? int i=0;
What is the value of sum after the code is executed? And What is the value of i after the code is executed?
int i=0; int sum = 0; for(i=0; i<5; i++) { sum += i; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
