diff --git a/a1/program.c b/a1/program.c index 9203077..a6bbd5b 100644 --- a/a1/program.c +++ b/a1/program.c @@ -115,7 +115,7 @@ int main(){ } need = 0; for (int j = 0; j < s; j = j + 3){ - if (number[j + 1] > 12 number[j + 1] < 0 number[j] < 1 number[j] > 31 number[j + 2] < 1900 number[j + 2] > 2100){ + if (number[j + 1] > 12 && number[j + 1] < 0 && number[j] < 1 && number[j] > 31 && number[j + 2] < 1900 && number[j + 2] > 2100){ number[j] = 0; number[j + 1] = 0; number[j + 2] = 0;