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
Haven't written C code in year, but this should work.
int i = 12345; while( i > 0 ){ int nextVal = i % 10; printf( "%d", nextVal ); i = i / 10; }