Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
d3741e5e0c
commit
a0a40567d3
@ -20,11 +20,12 @@ int main(){
|
||||
int pos = -1;
|
||||
//float p = 0;
|
||||
while(stop == 0){
|
||||
r = fgets(riadok,LINE_SIZE,stdin);
|
||||
pos++;
|
||||
r = fgets(riadok,LINE_SIZE,stdin);
|
||||
if(feof(stdin)){
|
||||
break;
|
||||
}
|
||||
pos++;
|
||||
|
||||
if (r == NULL || !isdigit(*r) || *r == EOF || feof(stdin)) {
|
||||
//printf("%d", *r);
|
||||
if(*r == 10){
|
||||
|
Loading…
Reference in New Issue
Block a user