27 lines
396 B
C
27 lines
396 B
C
|
#include <stdio.h>
|
|||
|
#include <Windows.h>
|
|||
|
|
|||
|
void main()
|
|||
|
{
|
|||
|
int odin, dwa, max, min;
|
|||
|
|
|||
|
SetConsoleCP(1251);
|
|||
|
SetConsoleOutputCP(1251);
|
|||
|
|
|||
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> - ");
|
|||
|
scanf_s("%d", &odin);
|
|||
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> - ");
|
|||
|
scanf_s("%d", &dwa);
|
|||
|
|
|||
|
if (odin > dwa) {
|
|||
|
min = dwa;
|
|||
|
max = odin;
|
|||
|
}
|
|||
|
else {
|
|||
|
min = odin;
|
|||
|
max = dwa;
|
|||
|
}
|
|||
|
|
|||
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> - %d\n", max);
|
|||
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> - %d", min);
|
|||
|
}
|