1.

How many times will the loop execute? int value1 =7,value2=19; do { JOptionPane.showMessageDialog(null,value1+value2); value1=value1+2; value2=value2-2; } while(value1<=value2);

Answer»

The answer is 4 times.



Discussion

No Comment Found

Related InterviewSolutions