find the last digit of the number 1^3 + 2^3 code example Example: find last digit of number //C++ int last_digit = number % 10;