uuu/Лаба3.1/Source.c
2024-11-19 00:53:58 +04:00

29 lines
406 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);
}
\\\\
\\\\