πŸ“Š JAVA
Q. What is the value of "age" in the below Java program with a DO-WHILE loop?
Code:
int age=20;
do
{
  age++;
}while(age<20);
System.out.println(age);
  • (A) 20
  • (B) 21
  • (C) Compiler error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) 21

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
228
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate