fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. // cout << n <<"\n";
  8. while (n % 10 == 0){
  9. n = n/10;
  10. }
  11. // cout << n <<"\n";
  12. while (n>=1){
  13. cout << n % 10 << "";
  14. n = n/10;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5276KB
stdin
154045300
stdout
3540451