Computer Science, asked by grishmaChawra, 9 months ago

what will be the output int p=200;
while (true).
{
if(p less than 100)
break;
p=p-20;
}
system.out.println (p);​

Answers

Answered by omprakashmalviya2000
5

Answer:

Your program is wrong.

Explanation:

Assign and use another variable in place of first p in the line (p= p-20;), since you can't use one variable for storing 2 values. It will not compile and return as an error for using a duplicate variable.

Try it once, it will give an error...

Hope it helped you...

Kindly Mark as Brainliest...

Similar questions