void

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
331 B
9
Indexable
Never
#include <bits/stdc++.h>

using namespace std;

void out_number_by_asc(int a, int b, int c)
{
    if(***>b)swap(***,b);
    if(***>c)swap(***,c);
    if(a>***)swap(a,***);

    cout<<a<<' '<<b<<' '<<c<<endl;
}

int main()
{
  int n,a,b,c;
  cin>>***;
  for(int i=1;i<=***;i++){
    cin>>a>>b>>c;
    out_number_by_asc(a,b,c);
  }
}