Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
b2f5720625
commit
a3104a6d68
@ -20,7 +20,13 @@ int main(){
|
||||
int pos = -1;
|
||||
//float p = 0;
|
||||
while(stop == 0){
|
||||
if(feof(stdin)){
|
||||
break;
|
||||
}
|
||||
r = fgets(riadok,LINE_SIZE,stdin);
|
||||
if(feof(stdin)){
|
||||
break;
|
||||
}
|
||||
pos++;
|
||||
if (r == NULL || !isdigit(*r)) {
|
||||
//printf("%d", *r);
|
||||
@ -68,4 +74,4 @@ int main(){
|
||||
vysl = mass[1];
|
||||
}
|
||||
printf("Vysledok je: %.2f\n", vysl);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user