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

Which of the following statements about labor unions in the late 1800s is accurate
How is earth self-regulating?
Write a function that repersents this process: A:Take a number,x. B: Multiply it by4. C: Subtract 2 from the result Then find the inverse of this function. Do
I really don't get this problem
which ball has the greater acceleration at the instant of release
Which of the following best describes the relationship between President George H. W. Bush and Soviet leader Mikhail Gorbachev? They met very infrequently. They
the supreme court ruled in gideon v. wainwright (1963) that gideon had been denied his rights because he had?
Having just one typo on your résumé can eliminate you from a job pool.
scientists need special tools to work in the laboratory. These tools are known as___________
What is the slope of the line that passes through (2, 12) and (4, 20)