OOPS
August 25, 2024OOPS
August 25, 2024OOPS
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);
24 0
|
|
24 1
|
|
25 0
|
|
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.
Subscribe
Login
0 Comments