fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {int x,kkj,rem;
  5. cin>>x;
  6. while(x != 0)
  7. {
  8. rem = x % 10;
  9. kkj= kkj * 10 + rem;
  10. x /= 10;
  11. }
  12. cout<<kkj; // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5476KB
stdin
121
stdout
121