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

This commit is contained in:
Vladyslav Korzun 2023-03-02 10:58:16 +00:00
parent 485a698d7a
commit a97b28500c

View File

@ -22,7 +22,7 @@ int main(){
while(stop == 0){ while(stop == 0){
r = fgets(riadok,LINE_SIZE,stdin); r = fgets(riadok,LINE_SIZE,stdin);
pos++; pos++;
if (r == NULL || !isdigit(*r)) { if (r == NULL || !isdigit(*r) || *r == EOF) {
//printf("%d", *r); //printf("%d", *r);
if(*r == 10){ if(*r == 10){
stop = 1; stop = 1;