kevilinohdp58n0m kevilinohdp58n0m
  • 22-03-2018
  • Computers and Technology
contestada

Set the following for loop header so that it prints the numbers, 0 2 4 6 8.

for (int i = ___; i ____; i ___ ) {
System.out.print(i + " ");
}
2, <= 10, ++
2, <= 10, += 2
0, <= 10, += 2
0, < 10, += 2
2, < 10, += 2

Respuesta :

Аноним Аноним
  • 23-03-2018
Option D is correct. The loop should look like this:

for (int i = 0; i < 10; i += 2)
{
     System.out.print(i + " ");
}
Answer Link
iqbalmuzafar410
iqbalmuzafar410 iqbalmuzafar410
  • 24-03-2018
This is correct meaning the answer above Is correcyt
Answer Link

Otras preguntas

Which of the following statements about the equality of citizens is TRUE? A.)all countries must have the same priorities B.)all democracies must have the same p
Which method do you prefer to use to find sums- count by tens and ones, use compatible numbers, or use friendly numbers and adjust? Explain why.
what is the difference between a general interest Science question and a testable question
what capital is built on seven hills?
How do u work this out
3 to the power of ten
Who beat MAyella Ewell?
write 17 as a fraction of 20
HELP PLEASE SOS PLEASE HELP
Which of the following is an accurate statement regarding trade? A. Voluntary trade occurs only when all participating nations expect to gain. B. Unregulated ma