fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. string a;
  8. cin>>a;
  9. int i;
  10. for(i=a.length()-1;i>=0;i--){
  11. cout<<a[i]-'0';
  12.  
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4536KB
stdin
12.336
stdout
633-221