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

Factorise completely: 9x2 + 42x + 49
simplyfy (−9a − 20c) − (−15a + 3c) − (−22a − 7c)?
whats the answer for this?? 2×56 (76,04??
In a dynastic rule, why is it important for rulers to persuade their subjects that their rule is lawful?
What are the main points of Oparins’s theory of Origin of life? Make a five
What should you pay attention to when you see a title for the first time? (5 points) the words and their meanings the font used to display the words the numb
When conducting experiments what do scientists use to help guide their processes?
Which of the following cannot be determined from the spectrum of a star? the chemicals in the atmosphere of the star the motion of the star the temperature of t
1. Why must DNA have thymine instead of Uracil? 2. Why is it necessary for RNA to have uracil instead of thymine?
how does the 3 in 350 compared to the 3 in 403