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

This commit is contained in:
Yaroslav Orlianskyi 2022-03-31 09:39:11 +00:00
parent d0fe2c3084
commit 94286eb34e

View File

@ -1,4 +1,3 @@
key, [3/31/2022 11:20 AM]
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
@ -102,7 +101,6 @@ int main(){
s++; s++;
} }
} }
key, [3/31/2022 11:20 AM]
char *endptr = NULL; char *endptr = NULL;
char *start = riadok1; char *start = riadok1;
int number[s]; int number[s];
@ -165,8 +163,7 @@ key, [3/31/2022 11:20 AM]
} }
else if (number[j] > 24){ else if (number[j] > 24){
number[j] = number[j] + 7 - 31; number[j] = number[j] + 7 - 31;
key, [3/31/2022 11:20 AM] number[j + 1]++;
number[j + 1]++;
} }
} }
else if (number[j + 1] == 4 && number[j] > 0 && number[j] <= 30){ else if (number[j + 1] == 4 && number[j] > 0 && number[j] <= 30){