Изменить 'du3/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-03-09 23:08:58 +00:00
parent b7c267dfe2
commit 04445d4afa

View File

@ -3,13 +3,13 @@
#include <stdlib.h>
int main() {
char input[10];
char input[11];
char numbers[4];
int date[3];
int counter1 = 0, counter2 = 0;
fgets(input, 10, stdin);
fgets(input, 11, stdin);
for(int i = 0; i < 10; i++){
for(int i = 0; i < 11; i++){
if(!isdigit(input[i]) && input[i] != '.' && input[i] != '\n'){
break;
}