fork download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cstring>
  4. using namespace std;
  5.  
  6. int main() {
  7. int numero[3], ent[3];
  8. cin >> ent[0];
  9. cin >> ent[1];
  10. cin >> ent[2];
  11. sort(numero, numero + 3);
  12. cout << numero[0] << ", " << numero[1] << ", " << numero[2] << endl ;
  13. cout << ent[0] << ", " << ent[1] << ", " << ent[2];
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/323411/101
Success #stdin #stdout 0s 4368KB
stdin
5
8
3
stdout
0, 0, 142
5, 8, 3