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 idea for the 13 colonies to unite under one "federal government", was born from Benjamin Franklin's work with Native Americans in Pennsylvania. He convinced
13. -lly + 32 = 104 - 5y
a 2, for a = 5 and b = 6.
Which is the measure of angle C A). 42° B). 138° C). 180° D). 218°
Need help with this
Which answer here is the definition for this word or phrase?"sacred writings"scripturevariantdiction​
What is the answer to this question
which property is demonstrated 8x6x4=4x6x8 A.commutative property of multiplication B.associative property of multiplication C.associative property of addition
3. Which of the following is not a common impact wrench drive size? (A) 1/4" (B) 3/8" (C) 1/2" (D) 3/4"
According to the map, which modern European nations had begun to form by 1000 CE?