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

What are qualities of a speech?
he force on a bullet that results from summing all of the forces on that bullet is known as the _____ on the bullet.
the length of a rectangle is 100 centimeters and it's perimeter is greater than 400 cm write an inequality to find width of the rectangle
Please help The base of a rectangular prism has an area of 1/8 ft2, and the height of the prism is 2/3 ft. What is the volume of the prism?
Krista needs her kitchen sink repaired. She pays a plumber a flat fee for an initial consultation, and then she pays him an hourly rate for the time he works on
3 ( y - 1 ) = 2 ( y + 1 )
identify and explain three Geographic advantages Romans benefited from on the Italian peninsula
marcella's house cost $120 000. she paid 20 percent down payment and then borrowed the rest at 6.5 percent for 20 years. if she must oay 7.46 per 1000 how much
how do you find the number of degrees in a third angle of a triangle
list four main settings for employment of public health care workers