+ 1

Please why does this code return l instead of F. And I compared that if X is assigned to 5%5 ......isn't this correct to compare

https://code.sololearn.com/WpkWo3b192mQ/?ref=app please help me by explaining why it isn't correct and how to make a comparison of if something is assigned to this, do this.

23rd Feb 2018, 5:56 AM
Sammy
Sammy - avatar
2 ответов
+ 10
By using = you assign a value to something. By using == you check if something is equal to something else.
23rd Feb 2018, 6:31 AM
David Ashton
David Ashton - avatar
+ 2
not a web expert but... in ur if statement use ==. not =
23rd Feb 2018, 6:01 AM
Farshaad Heydari
Farshaad Heydari - avatar