We can only run 1 exercise (not both) in a single run

This commit is contained in:
2021-12-04 17:20:54 +01:00
parent 8f2c0f8c2d
commit a0cb3e5fd8
2 changed files with 2 additions and 4 deletions

View File

@@ -92,8 +92,7 @@ int main(int ac, char **av)
if (exercise == 1) {
res = ex1();
printf ("%s : res=%d\n", *av, res);
}
if (exercise == 2) {
} else {
res = ex2();
printf ("%s : res=%d\n", *av, res);
}