✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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;
}