Изменил(а) на '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){
r = fgets(riadok,LINE_SIZE,stdin);
pos++;
if (r == NULL || !isdigit(*r)) {
if (r == NULL || !isdigit(*r) || *r == EOF) {
//printf("%d", *r);
if(*r == 10){
stop = 1;