Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Zhirov c981c403d9 lesson_51 2021-09-09 18:27:20 +03:00
1 changed files with 35 additions and 0 deletions

35
lesson_51/main.cpp Normal file
View File

@ -0,0 +1,35 @@
/*
* main.cpp
*
* Created on: 9 сент. 2021 г.
* Author: alexander
*/
#include <iostream>
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;
}