Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
e529ce698b
commit
f9c31abf43
@ -17,12 +17,20 @@ int main(){
|
||||
float vysl = 0;
|
||||
int counter = -1;
|
||||
float h = 0;
|
||||
int pos = 0;
|
||||
//float p = 0;
|
||||
while(stop == 0){
|
||||
r = fgets(riadok,LINE_SIZE,stdin);
|
||||
pos++;
|
||||
if (r == NULL || !isdigit(*r)) {
|
||||
if(*r == 13){
|
||||
stop = 1;
|
||||
}
|
||||
else{
|
||||
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", pos);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
r2 = atof(riadok);
|
||||
mass[i] = r2;
|
||||
//printf("%.2f\n", r2);
|
||||
|
Loading…
Reference in New Issue
Block a user