Pascal Lab #1

JOptionPane.showMessageDialog(null,”The number is”+num);}.In the above example, num is a integer variable that is assigned an initial value of 1. After this initialization, the message dialog statement (the body of the loop) is executed. num is incremented to having a value of 2 and the body again executes, and so on for the values 3, 4, and 5. ................
................