First commit
This commit is contained in:
29
IUT/Info1/TD/Exercices/6.6.3_imbrication_si/functions.cpp
Normal file
29
IUT/Info1/TD/Exercices/6.6.3_imbrication_si/functions.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "functions.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void ordreCroissant(float a, float b, float c) {
|
||||
if (a < b) {
|
||||
if (b > c) {
|
||||
cout << c << b << a;
|
||||
} else {
|
||||
if (a > c) {
|
||||
cout << b << c << a;
|
||||
} else {
|
||||
cout << b << a << c;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (a > c) {
|
||||
cout << c << a << b;
|
||||
} else {
|
||||
if (b < c) {
|
||||
cout << a << b << c;
|
||||
} else {
|
||||
cout << a << c << b;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user