0

How is total_score = total_score + score possible?

I was thinking about question from mathematical point of view and it seems wrong. Can someone please explain the same

12th Dec 2018, 6:17 PM
kritesh patel
kritesh patel - avatar
2 Antworten
+ 3
How do you think it is wrong? Note that: = is assignment operator and, == is equality operator total_score = total_score + score is right, but total_score == total_score + score is definitely false (except when both of them are zero or score is zero)
12th Dec 2018, 6:24 PM
777
777 - avatar
+ 1
Translate in in your head to: 'total_score shall henceforth carry the value total_score + score.'
12th Dec 2018, 7:19 PM
HonFu
HonFu - avatar