Computers and 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. 5
5
special
c. 20
special
d. 5
special
e. 2

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, ksanchez2100
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
image
Computers and Technology, 23.06.2019 16:30, rileysndr1782
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, chrisgaz14
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
Do you know the correct answer?
If number is 20, what is printed to the console after this code is executed?
for (int i = 3; i...

Questions in other subjects:

Konu
English, 22.06.2019 09:30
Konu
Mathematics, 22.06.2019 09:30