fork(2) download
  1. #include <iostream>
  2. int main() {
  3. int n = 156932;
  4. while( n )
  5. {
  6. std::cout << n % 10 << std::endl;
  7. n /= 10;
  8. }
  9. return 0;
  10. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
2
3
9
6
5
1