why isnt't it couting "x=no"????Code:#include <iostream> #define YES 1 #define NO 0 using namespace std; int main() { int x=YES; int y; if (x==YES){ cout<<"goed geantwoord"; cin>>y; if(y==5){ x==NO; } } if (x==NO){ cout<<"x=no"; } return 0; }
ps: it is couting "goed geantwoord"
thnx in advance