This commit is contained in:
Zodiak 303 2024-10-31 02:25:28 +04:00
parent e4c314b6d6
commit 17f57192f5

View File

@ -71,4 +71,27 @@ void main() {
} while (n != 0); } while (n != 0);
} }
123456 void main()
{
int odin, dwa, max, min;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
printf("Ïåðâîå ÷èñëî - ");
scanf_s("%d", &odin);
printf("Âòîðîå ÷èñëî - ");
scanf_s("%d", &dwa);
if (odin > dwa) {
min = dwa;
max = odin;
}
else {
min = odin;
max = dwa;
}
printf("Áîëüøåå ÷èñëî - %d\n", max);
printf("Ìåíüøåå ÷èñëî - %d", min);
}