...
OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024

OOPS

Question 176
What is the output of the following Java code

int count=1;

int num=25;

while (count<25)

{

num= num- 1 ;

count++ ;

}

System. out.println(count +” “+num);

A
24 0
B
24 1
C
25 0
D
25 1
Question 176 Explanation: 
The final output will be

Count = 25,num = 1.

Correct Answer: D
Question 176 Explanation: 
The final output will be

Count = 25,num = 1.

Leave a Reply

Your email address will not be published. Required fields are marked *