Compare commits
No commits in common. "lesson_51" and "master" have entirely different histories.
|
|
@ -1,35 +0,0 @@
|
||||||
/*
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue