Computer Science, asked by chsmreddy1999, 6 months ago

int age=20;
do
{
age++;
}while(age<20);
System.out.println(age);

Answers

Answered by shreykalra650
3

Answer:

the answer of this question is 21

Explanation:

plzz bhaiyo or meri bheno follow me I will follow back and plzz mark my answer as brainliest

Answered by madeducators2
0

Answer:

21

To Find:

int age=20;

do

{

age++;

}

while(age<20);

Explanation:

  • Here age is 20 then it becomes 21  and this results in loop being terminated as while condition becomes false .
  • So the print statement is executed and 21 is printed as the output
Similar questions