Which looping process is best used when the number of iterations is known?
How many types of loops are there?
What is the output of this program?
1. #include2. using namespace std; 3. int main() 4. { 5. int i; 6. for (i = 0; i < 10; i++); 7. { 8. cout << i; 9. } 10. return 0; 11. }
What is the output of this program?
1. #include2. using namespace std; 3. int main() 4. { 5. int n = 15; 6. for ( ; ;) 7. cout << n; 8. return 0; 9. }
What is the output of this program?
1. #include2. using namespace std; 3. int main() 4. { 5. int a = 10; 6. if (a < 15) 7. { 8. time: 9. cout << a; 10. goto time; 11. } 12. break; 13. return 0; 14. }