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 does c equal in this equation 6c + 11 = 2c + 59
The Intolerable Acts were passed and supported by the colonies. True False
The culture of Libya and the Maghreb is a blend of _____, European, and Asian influences.
Why is good habitat important for animals?
How is the sun related to nuclear electromagnetic and heat energy please help
Why is crossing over important
A cell with 2cm sides has what surface area?
How did the pilgrims establish friendly relations with native Americans in Plymouth?
What is the measurement of ∠N?
Who passed the Intolerable Acts in response to the Boston Tea Party? A. India B. colony leaders C. England