This commit is contained in:
Peter Sabol 2022-03-17 12:02:36 +01:00
parent 1779ccd0de
commit d7626c5517
2 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -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;