What is the output of the following? *
1 point
Captionless Image
Answers
Answered by
3
The output of the given code is "Hii".
Explanation:
In the given question snip is missing, so, we add another the snip and define its output:
- In the code inside the main method, an integer variable "xi" variable is declared that holds an integer value "2".
- In the next step, do-while loop is declared, in do section we print the message that is "Hii", and in while the check is a value that is "xi less than 2".
- The condition is false that's why it will print the "Hii" message in a single run.
Learn more:
- Find the output of the code: https://brainly.in/question/1957707
Attachments:
Answered by
0
Answer:
What will be the output? *
1 point
Captionless Image
Similar questions