Hi I am just learning C++ and was doing good until reached this and am unable to find a problem.
using namespace std;
if (x == 100)
cout << "x is 100";
cout << "x is not 100";
When i try and run this it says " 'x': undeclared identifier "
How can i identify 'x' to fix the problem?
you have to declare x before