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 Digital Manipulation Code of Ethics states that altering the editorial content of an image is appropriate if only 1/10 of the number of pixels have been alt
What are the disadvantages of using photo editing software in photography?
Using the given points, determine Δy. (-3, -5) and (0, 10)
Enter a balanced nuclear equation for the alpha decay of astatine-217
how to solve for area of triangle where A=67 degrees, b=11yd, and c=24yd
A line has a slope of -4 and passes through the point (0,-6) how do you do this ?
Cynthia is in the process of constructing two tangent line segments from a point outside circle O to circle O as shown. Which line segments could she draw that
Él me da las flores ________.
what is the conjugation of avoir?
What number completes the following equation 8x(40+7=(8x blank)+(8x7)