This commit is contained in:
Oleksandr Vyshniakov 2025-03-13 11:35:20 +01:00
parent e64ed639e3
commit 1963645434
11 changed files with 18 additions and 4 deletions

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
CC = gcc
CFLAGS = -Wall -Wextra -std=c99
dIRS = a1 du1 du2 du3 du4
all:
@for %%d in ($(dIRS)) do \
$(CC) $(CFLAGS) %%d\program.c -o %%d\program.exe
clean:
@for %%d in ($(dIRS)) do \
if exist %%d\program.exe del %%d\program.exe
build-%:
$(CC) $(CFLAGS) $*/program.c -o $*/program.exe

View File

@ -20,4 +20,4 @@ int main() {
}
printf("\nLines count: %d\n", c2);
return 0;
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -38,13 +38,14 @@ int main() {
case '/':
if (cislo2 == 0) {
printf("ZLE\n");
continue;;
continue;
}
result2 = cislo1 / cislo2;
break;
default:
printf("CHYBA\n");
continue;;
continue;
}
@ -58,4 +59,6 @@ int main() {
}
return 0;
}
}

Binary file not shown.

Binary file not shown.

BIN
du4/program.exe Normal file

Binary file not shown.