Изменил(а) на '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;
//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);
}
}