Using arithmetic operators, get the individual digits of a 4-digit number like 4936:
- thousands place is
4 - hundreds place is
9 - tens place is
3 - ones place is
6
Use number % 10 to determine the rightmost digit. Then use that value and % again to get the tens digit. Repeat until you have all 4 digits.
Once you have the ones digit from the previous hint, subtract it from the current number, then divide the result by 10. Repeat hint 1 to get the next digit.