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

This commit is contained in:
Oleksandr Hryshchenko 2021-03-18 18:46:28 +00:00
parent cb090b10de
commit e6e9367597

View File

@ -13,6 +13,7 @@ int main() {
int truth = 0; int truth = 0;
for (int j = 0; fgets(input, 11, stdin) != NULL; j++){ for (int j = 0; fgets(input, 11, stdin) != NULL; j++){
if(input[0] == '\n') continue;
for(int i = 0; i < 11; i++){ for(int i = 0; i < 11; i++){
if(!isdigit(input[i]) && input[i] != '.' && input[i] != '\0' && input[i] != '\n'){ if(!isdigit(input[i]) && input[i] != '.' && input[i] != '\0' && input[i] != '\n'){
puts("Neplatny datum."); puts("Neplatny datum.");