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

Find the distance from Link to the Green Soldier so Link can attack.
what is the awnser to -6 > -2 + n
help asap! Write an expression equivalent to [5x²]-[15x] that is a product of two expressions. Fill in the blanks with numbers, variables, or expressions. will
Who were the members off the Allies?
pls answer NOWplssss! Select the correct answer from each drop-down menu.Complete the given sentence with the correct meaning of an internal and external confli
Can rocks melt above ground
which conflict is often referred to as the first "televised" war?
plz upload picture this is graphing
PLEASE HELP ITS DUE REALLY SOON!! URGENT! SHOW YOUR WORK ALSO! PLEASE ACTUALLY ANSWER :( IVE BEEN DOING THIS FOR OVER 2 HOURS
PLEASE HELP AND THANK YOU!! I WILL ALSO MARK BRAINLIEST IF THE ANSWER IS CORRECT!! I am pretty sure it is skewed-left but I just wanted to make sure! I am posit