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

' X (8 X 9) .8 gm X 8 '7
The part of the cerebrum that controls voluntary movements is located in the _______ lobe. A. frontal B. parietal C. temporal D. occipital
What is the formula of sulfurous acid? H2S HSO4 H2SO4 H2SO3
what is the ratio of 4.3
How often do you drink water? Nine times ...........day a) on b) in c) a d) after
Pap smears can detect early :
What is the multiple source test
The jars of paint in the art room have different amounts of paint.the green paint jar is 4/8 full. The purple paint jar is 4/6 full. Which paint jar is less ful
An igloo is made of ice and snow. Which state of matter is used to make an igloo
What is the volume of a cone with a base of 10 and height of 9