c++ integer exercises

I am a beginner in c++ and wanted to learn some tips and tricks with working on digits and numbers. for example to get the last digit of a number we do number%10 to remove the last number we do number/10 does anyone know of more useful tips and tricks like these. and also if anyone has any practice questions like "take a number and swap it" or "take a number and remove the first and last digit" thank you
Please don't post duplicates.

http://www.cplusplus.com/forum/general/235405/
Topic archived. No new replies allowed.