Computer Science, asked by mcs32, 1 year ago

(e) 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 avinashmurmu99311
4

Explanation:

180 as there is no brace for decrement it will decrease the value

Similar questions