mirror of
https://github.com/Kaehvaman/OAIP.git
synced 2025-01-18 08:39:11 +04:00
27 lines
322 B
C
27 lines
322 B
C
#include <stdio.h>
|
|
#include <Windows.h>
|
|
|
|
int main() {
|
|
int max, v1, v2, v3;
|
|
|
|
SetConsoleCP(1251);
|
|
SetConsoleOutputCP(1251);
|
|
|
|
printf("ââåäèòå 3 öåëûõ ÷èñëà: ");
|
|
scanf_s("%d%d%d", &v1, &v2, &v3);
|
|
max = v1;
|
|
|
|
if (v2 > max) {
|
|
max = v2;
|
|
}
|
|
|
|
if (v3 > max) {
|
|
max = v3;
|
|
}
|
|
|
|
printf("max = %d", max);
|
|
|
|
return 0;
|
|
}
|
|
|