fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main () {
  6.  
  7. int n;
  8. cin >> n;
  9. for(int i = 0; i < 3; i ++) {
  10. cout << n % 10 << " ";
  11. n /= 10;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
1 9 0