Cam someone explain me what does this "+=" do ?
It's equivalent to adding the current value of whatevers on the left side of the equal sign by whatever is on the right side of the equal sign. Example/ int x = 5; x += 10; This is equivalent to writing: int x = 5; x = x + (10); So x will become 15 in both cases.
x+=y means x=x+y; x-=y means x=x-y; x*=y means x=x*y; x/=y means x=x/y;
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!