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

This commit is contained in:
Vladyslav Korzun 2023-03-06 17:03:32 +00:00
parent a97b28500c
commit 17215a9651

View File

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