Computer Science, asked by sasmitapanigrahi2006, 7 months ago

Find the output of following java program : int p= 100; while (true){ if (p<50){ break ; p=p-10 } system. Out.println(p)

Answers

Answered by Anonymous
0

Answer:

OUTPUT :-

100

90

80

70

60

50

Footnotes : Int (p) is taking in a value

Until p value is less than 50, it prints (p-10) value

If p is less than 50, loop breaks

Similar questions