Saved Bookmarks
| 1. |
1. Name the type or loop which can be used to ensure that the body of the loop will surely be executed at least once. 2. Consider the code given below and predict the output. for (int i=1; i<=9;i=i+2){ if (i==5) continue;cout<<i<<" ";} |
|
Answer» 1. do while loop(Exit controlled loop) 2. 1 3 7 9. It bypasses one iteration of the loop when i = 5. |
|