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

35 ptz!!!! George had 50 cookies,he lost half of the cookies in his room. He ate 5 cookies. If he found 5 and his sister found 10. How many cookies are still in
What is the mass of cirn syrup i added 9.8 ml to a bowl density of the corn syrup is 1.4 g
Which of the following is NOT something that the United States and Canada have in common? former English colonies navigable waterways have fertile farmlands ar
Help me please. Im giving brainliest!!!!!!
Find the equation of a line perpendicular to y=-4x that contains the point (-3, -4)
Mean, mode, and median in these sets of numbers 55, 50, 73, 61, 68, 48,48
Phrasing in poetry helps bring emphasis to certain words and ideas. It can also affect the interpretation of a poem. Why did Pat Mora choose to split certain se
Write a paragraph describing a desolate place. ?
I need some help with this.
What factors determine whether a molecular collision produces a reaction?