funguje
This commit is contained in:
parent
1779ccd0de
commit
d7626c5517
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -6,7 +6,8 @@ int main()
|
|||||||
{
|
{
|
||||||
float a[100],sum=0,x;
|
float a[100],sum=0,x;
|
||||||
int n,i;
|
int n,i;
|
||||||
|
printf("\nEnter the value of X :: ");
|
||||||
|
scanf("%f",&x);
|
||||||
printf("\nEnter degree of the polynomial X :: ");
|
printf("\nEnter degree of the polynomial X :: ");
|
||||||
scanf("%d",&n);
|
scanf("%d",&n);
|
||||||
printf("\nEnter coefficient's of the polynomial X :: \n");
|
printf("\nEnter coefficient's of the polynomial X :: \n");
|
||||||
@ -16,9 +17,6 @@ int main()
|
|||||||
scanf("%f",&a[i]);
|
scanf("%f",&a[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nEnter the value of X :: ");
|
|
||||||
scanf("%f",&x);
|
|
||||||
|
|
||||||
for(i=n;i>0;i--)
|
for(i=n;i>0;i--)
|
||||||
{
|
{
|
||||||
sum=(sum+a[i])*x;
|
sum=(sum+a[i])*x;
|
||||||
|
Loading…
Reference in New Issue
Block a user