fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, b, c, d, e, f;
  5. cin>>a;
  6. b=a/100;
  7. c=a/10;
  8. d=c%10;
  9. e=a%10;
  10. f=e*100+d*10+b*1;
  11. cout<<f<<endl;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5288KB
stdin
243
stdout
342