If i use, if (7=4) {cout <<"yes"} It shows error instead of " No output" Why?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If i use, if (7=4) {cout <<"yes"} It shows error instead of " No output" Why??

27th Jul 2019, 3:36 PM
Aryan
Aryan - avatar
3 Answers
+ 2
You should use "==" instead of assignment operator, I think.
27th Jul 2019, 3:40 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Aryan you are welcome 😉
27th Jul 2019, 4:04 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Thanks
27th Jul 2019, 4:04 PM
Aryan
Aryan - avatar