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

This commit is contained in:
Yaroslav Orlianskyi 2022-03-31 10:00:38 +00:00
parent 212423b7d9
commit 9edcc63f35

View File

@ -55,7 +55,7 @@ int main()
i = 1;
for (int g = 0; g < strlen(riadok[j]); g++)
{
if ((riadok[j][g] == '1' riadok[j][g] == '2' riadok[j][g] == '3' riadok[j][g] == '4' riadok[j][g] == '5' riadok[j][g] == '6' riadok[j][g] == '7' riadok[j][g] == '8' riadok[j][g] == '9' riadok[j][g] == '0' riadok[j][g] == '\0'))
if ((riadok[j][g] == '1' || riadok[j][g] == '2' || riadok[j][g] == '3' || riadok[j][g] == '4' || riadok[j][g] == '5' || riadok[j][g] == '6' || riadok[j][g] == '7' || riadok[j][g] == '8' || riadok[j][g] == '9' || riadok[j][g] == '0' || riadok[j][g] == '\0'))
{
i++;
if (strlen(riadok[j]) == i)
@ -152,7 +152,7 @@ int main()
need = 0;
for (int j = 0; j < s; j = j + 3)
{
if (cisla[j + 1] > 12 cisla[j + 1] < 0 cisla[j] < 1 cisla[j] > 31 cisla[j + 2] < 1900 cisla[j + 2] > 2100)
if (cisla[j + 1] > 12 || cisla[j + 1] < 0 || cisla[j] < 1 || cisla[j] > 31 || cisla[j + 2] < 1900 || cisla[j + 2] > 2100)
{
cisla[j] = 0;
cisla[j + 1] = 0;