C++ LOOPS | C++ FOUNDATION Question 12

Last Updated :
Discuss
Comments

How many times will the loop run?

C++
#include <iostream>
using namespace std;

int main() {

    for (i = 1; i < 15; i++) {
        cout << i << endl;
    }
    return 0;
}

14

16

Error

15

Share your thoughts in the comments