kiaraahquin9491 kiaraahquin9491
  • 02-09-2019
  • Computers and Technology
contestada

. What is the output of this code sequence?

for ( int i = 5; i >= 0; i-- )

System.out.print( i + " " );

System.out.println( );

Respuesta :

NanaDwumor
NanaDwumor NanaDwumor
  • 02-09-2019

Answer:

5

4

3

2

1

0

Explanation:

The boolean expression is true from i=5 to i=0. This makes it 6 times.

The System.out.print will leave cursor on same line after printing. However System.out.println() will print a blank space and move to next line. This makes output to be arranged vertically.

Answer Link

Otras preguntas

the value of the expression -|a-b| when a=7and b = -3 is
Which term best describes the difference in colors or the birds below? A. Natural selection B. Reproductive maturity C. Genetic variation D. Genetic drift
The encryption method based on the idea of using a shared key for encryption and decryption of data is
What can you assume is the subject of a sentence that gives an order, such as “Buy your tickets here
What is one third of the seventh whole number ?
¿qué son? select the appropriate category for these words. july 15 11:59 pm 2 attempts remaining grade settings vocabulary list andar en patineta baloncesto béi
Please help ASAP! Describe at least one way in which each of Earth’s subsystems was altered during the Precambrian era.
Certain preparations contain killed or weakened live biological agents that, upon injection into our body, protect the body against those pathogens. What are th
HELP PLEASE PLEASE PLEASE PLEASE Which of the following are identities ?
-5 - 12 change to addition with answer