BugHunt #5 – Loops

Difficulty: Very Easy
Time to solve: 1-2 min
Video this is covered in: 1-10


#include <iostream>

using namespace std;
int main(){

    int i = 0;
    while (i<10){
        cout << i <<endl;
        i+;
    }
    
return 0;
}

Input: 7
Error MessageTesting.cpp:9: error: expected primary-expression before ‘;’ token

BugHunt 4: If
BugHunt #6 -- More loops