fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a, b=0, i;
  7. cin>>a;
  8. i=a;
  9. while(i>0) {
  10. b=b*10+i%10;
  11. i=i/10;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 3296KB
stdin
562368
stdout
Standard output is empty