Facebook
From Abrupt Zebra, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 178
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main(){
  7. int a,b,c;
  8. cin>>a;
  9. if (a<= -1000 || a >= 1000){
  10.     return 0;
  11. }
  12. cin>>b;
  13. if (b<= -1000 || b >= 1000){
  14.     return 0;
  15. }
  16. cin>>c;
  17. if (c<= -1000 || c >= 1000){
  18.     return 0;
  19. }
  20. cout<<a<<" "<<b<<" "<<c<<"\n"<<c<<" "<<b<<" "<<a;
  21. }
  22.