yanhuiluzhang yanhuiluzhang
  • 24-04-2020
  • Computers and Technology
contestada

What will this program print out? int function (int[] array) { for (int i = 0; i < 10; i++) { if (i % 2 == 0) { println(i); } } }
1) 2,4,6,8
2) 0,2,4,6,8,10
3) 2,3,4,5
4) 1,2,3,4
5) 0,2,4,6,8

Respuesta :

blackwidowwsj
blackwidowwsj blackwidowwsj
  • 24-04-2020

Answer:

AP Comp sci amiright?

I believe the answer is 5.

Answer Link

Otras preguntas

How did benjamin franklin help work for freedom of the press
What are two number rounded to 14,000
How to find the unknown variable of q-13=-13
Compare and contrast the types of digestive system found in worms.
Sunflowers belong to which of the following kingdoms? a. Animalia b. Fungi c. Plantae d. Protista
What were three of the final goals of the 1994 Cairo Conference?
What action involves a chemical change? making ice cubes,adding sugar to tea, cutting wrapping paper, baking a cake
Describe the process of rounding a number to the nearest thousand
what is the value of the Underlined digit 506087 which 7 is the underlined digit
What were the issues in the election of 1800, and what were the reactions of the losers and the victors?