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

This commit is contained in:
Yaroslav Orlianskyi 2022-03-31 09:43:29 +00:00
parent 1f3719eb71
commit 7d361fcb97

View File

@ -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;