What values does counter variable i assume when this loop executes?
For (int i = 20; i >= 2; i = i - 6)
{
System.out.print(i + ",") ;
}
A) 20, 14, 8, 2
B) 20, 14, 8, 2, -4
C) 20, 14, 8
D) 14, 8, 2
Correct Answer:
Verified
Q30: Which of the following is considered a
Q40: In the _ loop header, you can
Q43: What does the following code snippet print?
Int
Q46: What is the output of the following
Q55: Insert a statement that will correctly terminate
Q56: What is the output of the following
Q58: What is the output of this code
Q65: Choose the loop that is equivalent to
Q66: Which of the following loop(s) could possibly
Q106: How many times does the following loop
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