29 lines
408 B
C
29 lines
408 B
C
#include <stdio.h>
|
|
#include <Windows.h>
|
|
|
|
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);
|
|
}
|
|
\\\\\
|
|
\\\\\
|