fork(8) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = 268670;
  6. while (x > 0) {
  7. int last_number = x % 10;
  8. cout << last_number;
  9. x /= 10;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 4428KB
stdin
Standard input is empty
stdout
076862