Изменил(а) на 'a1/program.c'
This commit is contained in:
parent
7d361fcb97
commit
b41b4e9745
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user