diff --git a/du3/program b/du3/program index cc876d9..1b0be07 100755 Binary files a/du3/program and b/du3/program differ diff --git a/du3/program.c b/du3/program.c index d801396..cd08524 100644 --- a/du3/program.c +++ b/du3/program.c @@ -6,7 +6,8 @@ int main() { float a[100],sum=0,x; int n,i; - + printf("\nEnter the value of X :: "); + scanf("%f",&x); printf("\nEnter degree of the polynomial X :: "); scanf("%d",&n); printf("\nEnter coefficient's of the polynomial X :: \n"); @@ -16,9 +17,6 @@ int main() scanf("%f",&a[i]); } - printf("\nEnter the value of X :: "); - scanf("%f",&x); - for(i=n;i>0;i--) { sum=(sum+a[i])*x;