456
This commit is contained in:
parent
e4c314b6d6
commit
17f57192f5
25
Лаба10.c
25
Лаба10.c
@ -71,4 +71,27 @@ void main() {
|
||||
} while (n != 0);
|
||||
}
|
||||
|
||||
123456
|
||||
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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user