subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
question
Computers and Technology, 25.06.2019 07:20
Acompany's intranet is set up on this type of server. application communication print web
Answers: 1
You know the right answer?
If number is 20, what is printed to the console after this code is executed?
for (int i = 3; i...
Questions
question
Biology, 13.12.2021 19:00
question
Mathematics, 13.12.2021 19:00
question
Mathematics, 13.12.2021 19:00
question
Biology, 13.12.2021 19:00
Questions on the website: 13722363