ppp/Лаба3.1/Source.c

28 lines
412 B
C
Raw Normal View History

2024-11-18 23:38:10 +04:00
#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);
}
\\\\\\\\\\\\\\\