Изменить 'du3/program.c'
This commit is contained in:
parent
cb090b10de
commit
e6e9367597
@ -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.");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user