#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
cout << a*100+c*10+b;
cout << " " << b*100+a*10+c;
cout << " " << b*100+c*10+a;
cout << " " << c*100+a*10+b;
cout << " " << c*100+b*10+a;
}
Show life that you have a thousand reasons to smile
© Copyright 2024 DOKU.TIPS - All rights reserved.
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
cout << a*100+c*10+b;
cout << " " << b*100+a*10+c;
cout << " " << b*100+c*10+a;
cout << " " << c*100+a*10+b;
cout << " " << c*100+b*10+a;
}