Help, Why doesn't this Work... | SoloLearn: Learn to code for FREE!

0

Help, Why doesn't this Work...

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

10/10/2017 4:10:42 PM

Amogh Mishra

2 Answers

New Answer

0

Why....?

+4

i think error is if(a=123) it will be if(a==123)