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

What type of polynomial is this
What is called a person who makes their living through trade.
Which of these structures is not an example of an extracellular matrix?
solve the equation px=27​
Use the equation n = 10m - 9 to find n when m = 3.
ANSWER ASAP!!! Choose one leader or important figure from the Civil Rights Movement and summarize their importance and/or contributions to the Movement ​
b. If 3x - 3 and 5x + 7° are the angle of a linear pair, find their measurement the angle​
Which persuasive appeal do you think is the most effective in advertising? Explain.
Will the solution to the following equation be positive or negative? b ÷ -2 = 5 positive negative
Is the sales team makes 4% commission on the computers they sell and each computer costs $999, what is the commission the team would make?