sadeem50 sadeem50
  • 10-11-2020
  • Computers and Technology
contestada

What is the output of the below Java program?
int a=1:
while (a=4)
{
System.out.print(a + "");
a ++:
}
What is the output of the following java program

Respuesta :

skowronkow skowronkow
  • 10-11-2020

Answer:

If you fix your program: instead of "while (a=4)" you will have: while(a<4)

It wil print:

> 123

Explanation:

You can check the output of that kind of programs in online repl consoles e.g: https://repl.it/languages/java10

Answer Link

Otras preguntas

I realize that allowing comcorp to erect a cell phone tower next to the high school will bring our town thousands of dollars. But until we know the full details
Need help badly #15 Find the area of each sector.
HELP ME PLEASE AND THANKS IF U DO:D
Choose the equation that matches the following problem. When the side of a square is doubled, its area is increased to 28 cm2. A 2x = 28 B 2x 2 = 28 C (2x)2 = 2
If g(x) = f(x)-1 how is the graph f(x) translated to form the graph of g(x)?
Washington, D.C., is located __________ of Richmond, Virginia. A. west B. north C. south D. east
to what extent was bolivar a supporter of enlightenment ideas
How do you solve these equations? I don't want you to answer all of them, just tell me how to solve each type of equation on the sheet.​
Pleaseeeeeeeeeeee helpppppppppppp
Jacob buys for muffins for $5 what is the cost of 7 muffins​