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

This commit is contained in:
Vladyslav Korzun 2023-03-06 17:19:41 +00:00
parent b2f5720625
commit a3104a6d68

View File

@ -20,7 +20,13 @@ int main(){
int pos = -1; int pos = -1;
//float p = 0; //float p = 0;
while(stop == 0){ while(stop == 0){
if(feof(stdin)){
break;
}
r = fgets(riadok,LINE_SIZE,stdin); r = fgets(riadok,LINE_SIZE,stdin);
if(feof(stdin)){
break;
}
pos++; pos++;
if (r == NULL || !isdigit(*r)) { if (r == NULL || !isdigit(*r)) {
//printf("%d", *r); //printf("%d", *r);