Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a,b,c;
- cin >> a >> b >> c;
- if (a>=b) {
- if (b>=c) {
- cout << c << " " << b << " " << a;
- }else if ((b<=c) && (a>=c)) {
- cout << b << " " << c << " " << a;
- }else {
- cout << b << " " << a << " " << c;
- }
- }else {
- if (a>=c) {
- cout << c << " " << a << " " << b;
- }else if ((a<=c) && (b>c)) {
- cout << a << " " << c << " " << b;
- }else {
- cout << a << " " << b << " " << c;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement