Analyse the following program segment and determine how many times the loop will be executed and what will be the output of the program segment.
int p = 200;
while (true)
{
if(p<100)
break;
p = p-20;
}
System.out.println(p)
Answers
Answered by
2
Answer:
80
Explanation:
Similar questions