Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
a97b28500c
commit
17215a9651
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user