Compare commits

..

No commits in common. "main" and "fiche" have entirely different histories.
main ... fiche

View File

@ -2,14 +2,14 @@
#include <Windows.h>
void main() {
int v1, v2, v3, v4, v5, v6, v7;
int v1, v2, v3, v4, v5, v6;
int max;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
printf("Введите 7 чисел: ");
scanf_s("%d%d%d%d%d", &v1, &v2, &v3, &v4, &v5, &v6, &v7);
printf("Введите 5 чисел: ");
scanf_s("%d%d%d%d%d", &v1, &v2, &v3, &v4, &v5, &v6);
max = v1;
if (v2 > max) {
@ -27,9 +27,6 @@ void main() {
if (v6 > max) {
max = v6;
}
if (v7 > max) {
max = v7;
}
printf("max = %d", max);
}