Lucid505 Lucid505
  • 04-03-2024
  • Computers and Technology
contestada

In the following code, what will be the last number to print to the screen before the program finishes?
for (var i = 0; i < 10; i++) {
if (i % 2 == 0) {
println(i);
} else {
println(2 * i);
}
}
A) 15
B) 17
C) 18
D) 22

Respuesta :

Otras preguntas

Explain why a mixed number is not in the set of intergers or whole numbers
Factor the expression -10x^2-41x-21
how to Express each decimal as a fraction or a mixed number in a simplest form ? I need help with -0.14
What are the two largest ethnic groups in the united states today?
Write equation in function form 6-y=17x
write the number in two other forms
If 604-72=___,then 532+___=604.Explain the process of checking your work.
Write equation in function form 4x+y=10
The most commonly spoken language in the Fertile Crescent around the time of Jesus was
the student council president wants to find out the opinion of the students on the issue of school lunch options. The president sends out a survey to a random