28 lines
401 B
C
28 lines
401 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);
|
|
}
|
|
\\\\
|