Изменил(а) на 'a1/program.c'

This commit is contained in:
Yaroslav Orlianskyi 2022-03-31 09:44:27 +00:00
parent 7d361fcb97
commit b41b4e9745

View File

@ -115,7 +115,7 @@ int main(){
} }
need = 0; need = 0;
for (int j = 0; j < s; j = j + 3){ 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] = 0;
number[j + 1] = 0; number[j + 1] = 0;
number[j + 2] = 0; number[j + 2] = 0;