Guest User

Untitled

a guest
Aug 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include<algorithm>
  3.  
  4. using namespace std;
  5.  
  6. int numero[2],ent[2];
  7.  
  8. int main(){
  9.  
  10. cin>>ent[0];
  11. cin>>ent[1];
  12. cin>>ent[2];
  13. numero[0]=ent[0];
  14. numero[1]=ent[1];
  15. numero[2]=ent[2];
  16.  
  17. sort(numero,numero+3);
  18.  
  19.  
  20. cout<<numero[0]<<endl<<numero[1]<<endl<<numero[2]<<endl;
  21. cout<<endl<<ent[0]<<endl<<ent[1]<<endl<<ent[2]<<endl;
  22.  
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment