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 respiratory system depends on the nervous system for signals to a. coordinate the muscles that control breathing. b. exchange gases with the circulatory s
why do you think artisans and traders were respected in Aztec society
Movie reviews are an example of a kind of critique. a. True b. False
Biomes are unique and do not appear more than once on Earth. a. True b. False
1. Which of the following is true about chemical energy? A. Chemical energy can be stored more efficiently as glucose than it can be as ATP. B. Chemical energy
There are _____ levels of cell organization recognized by biologists.
Half of a number is equal to 8 more than the number.
a mixture that has the same composition through out is called
Which country dropped out of ww1 and wasn't present at the Versailles peace talk
Select all examples of non-market distribution methods