diff --git a/lesson_51/main.cpp b/lesson_51/main.cpp new file mode 100644 index 0000000..95cd327 --- /dev/null +++ b/lesson_51/main.cpp @@ -0,0 +1,35 @@ +/* + * main.cpp + * + * Created on: 9 сент. 2021 г. + * Author: alexander + */ +#include + +using namespace std; + +int main() +{ + cout << "Введите число: "; + int x; + cin >> x; + + cout << "Введите большее число: "; + int y; + cin >> y; + + if (x > y) + { + int z = y; + y = x; + x = z; + } + + cout << "Меньшее число: " << x << endl; + cout << "Большее число: " << y << endl; + + return 0; +} + + +