✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
21. What is wrong with the following program?
#include <iostream>
using namespace std;
int main() {
int x;
cout << "Enter a number: ";
cin >> x;
if (x = 5) {
cout << "x is equal to 5" << endl;
}
return 0;
}