InterviewSolution
Saved Bookmarks
| 1. |
What will be the value of P and Q after execution of the following code:int P, Q = 100;for(P = 10; P<=12; P++){Q+ = P;}JOptionPane.showMessageDialog(this, "P:" + P + "Q:" + Q +" "); |
|
Answer» Output P:13 Q:133 |
|