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

Sandy has several pictures of to hold lemonade for the school bake sale two pictures can hold 64 ounces each and four pictures can hold 48 ounces each how many
Translate the following into an equation: The product of a number and -3 increased by 4 is 12
what is the difference between a monarchy and dictator
What is the absolute value of 39
In a cell information that controls the production of proteins must pass from the nucleus to
What Ishtar answer to 5x-83=82-6x
1+i is a zero of f(x)=x^4-2x^3-x^2+6x-6
The cart below shown the number of cakes jenny bakes each month.agust 460 , sep 320, oct 440, Nov 560 and Dec 620 what is tje mean number of cakes jenny bakes i
The cart below shown the number of cakes jenny bakes each month.agust 460 , sep 320, oct 440, Nov 560 and Dec 620 what is tje mean number of cakes jenny bakes i
Why is it important for an IV solution to have salts in it?