C++ LOOPS | C++ FOUNDATION Question 8

Last Updated :
Discuss
Comments

How many times the loop will run?

#include <iostream>
using namespace std;
int main() {
    int i;
    for (i = 0; i < 15; i++) {
        cout << i << endl;
    }
    return 0;
}


 

12

15

14

Error

Share your thoughts in the comments