What will be its output? *
Captionless Image
Answers
Answered by
0
Answer:
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.
Explanation:
Similar questions