BugHunt 4: If

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

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
    
    cout << "Enter the number 5 to see a secret message: ";
    int x=0;
    cin >> x;
    
    if (x=5){
        cout << "I love you!\n";
    }
    else{
        cout << "That wasn't the number 5!\n";
    }
return 0;
}

Input: 7
Program output: “I love you!”

Bughunt 3:
BugHunt #5 - Loops