0

Help, Why doesn't this Work...

{ int a; cout << "PASSWORD \n"; cin >> a; if (a = 123) { cout << "Great \n"; } return 0; }

10th Oct 2017, 4:10 PM
Amogh Mishra
Amogh Mishra - avatar
2 Answers
0
Why....?
11th Oct 2017, 2:06 AM
Amogh Mishra
Amogh Mishra - avatar
+ 4
i think error is if(a=123) it will be if(a==123)
10th Oct 2017, 4:28 PM
Scooby
Scooby - avatar