Aktualizovat „a1/program.c“
This commit is contained in:
parent
51a7d14338
commit
e8358d9de9
@ -19,11 +19,11 @@ int main()
|
||||
count++;
|
||||
}
|
||||
value=0;
|
||||
if(r==1){
|
||||
|
||||
for(int i =0;i<count&&count-1-i>=0;i++){
|
||||
value+=(long double)(arr[i]*pow(x,count-1-i));
|
||||
}
|
||||
}
|
||||
|
||||
if(value>=40000&&value<=1000000){
|
||||
value =((int)(value*100 - 0.5)/100.00);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user