If number is 20, what is printed to the console after this code is executed?
for (int i = 3; i < = number; i + = 2)
{
if (number % i = = 0)
{
System. out. println (i);
if (i = = number)
System. out. println ("special");
break;
}
}
a. 5
b. 5
5
special
c. 20
special
d. 5
special
e. 2
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “If number is 20, what is printed to the console after this code is executed? for (int i = 3; i < = number; i + = 2) { if (number % i = = 0) ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » If number is 20, what is printed to the console after this code is executed? for (int i = 3; i < = number; i + = 2) { if (number % i = = 0) { System. out. println (i); if (i = = number) System. out. println ("special"); break; } } a. 5 b.