Practice · 2 of 4
Exam MCQ
CHALLENGE
Difficulty: advanced+25 XP
What is the value of r after the loop?
``java
int r = 1;
for (int i = 3; i >= 1; i--) {
r *= i;
}
``
A. 6
B. 3
C. 9
D. 1
Print the letter, then your one-sentence justification.
Press Submit to check your solution.
Back to lesson: Practice: Exam #1: MCQ section