What are the values of i and j after the following code snippet executes?
Int i = 60;
Int j = 50;
Int count = 0;
While (count < 5)
{
I = i + i;
I = i + 1;
J = j - 1;
J = j - j;
Count++;
}
System.out.println(i) ;
System.out.println(j) ;
A) i = 65, j = 1
B) i = 65, j = 45
C) i = 1951, j = 0
D) i = 1951, j = 45
Correct Answer:
Verified
Q18: How many times will the following loop
Q19: What is the output of the following
Q20: What is the output of the code
Q21: What is the output of the code
Q22: What will be the result of running
Q24: Which of the following code snippets displays
Q25: How many times does the following code
Q26: How many times does the loop execute
Q27: What is the output of the code
Q28: Select the statement that correctly completes the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents