fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a;
  7. b = a % 100;
  8. a = a / 100;
  9. c = b * 100 + a;
  10. cout << c << "\n"<< a << "\n"<< b << "\n";
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5292KB
stdin
1234
stdout
3412
12
34