I\'m new to programming, and I\'m stuck at a problem. I want my program to identify the separate digits in a given number, like if I input 4692, it should ident
4692
Simple and nice
void PrintDigits(const long n) { int m = -1; int i = 1; while(true) { m = (n%(10*i))/i; i*= 10; cout << m << endl; if (0 == n/i) break; } }