fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a, b, c;
  7.  
  8. cin >> a >> b >> c;
  9. cout << a << " " << b << " " << c << "\n";
  10. cout << c << " " << b << " " << a << "\n";
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5312KB
stdin
6 7 8
stdout
6 7 8
8 7 6