From 1779ccd0debda4ebfce4e44e91d89108c9f2732d Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Thu, 17 Mar 2022 11:59:47 +0100 Subject: [PATCH] funguje --- du3/program | Bin 0 -> 5818 bytes du3/program.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 du3/program create mode 100644 du3/program.c diff --git a/du3/program b/du3/program new file mode 100755 index 0000000000000000000000000000000000000000..cc876d9c36dca9d918fac597a07fc6b0fced1d2c GIT binary patch literal 5818 zcmb7Idu&tJ89#Omb!jl+(KaopT&)g-2~42jS*l_Z!lU8Q5NIbJ7stMiy*hSeU(=-O zTBxBA1yr{22i4F-B{W4FlOheRXp2^8QXUnP7_GLUb&PFPOI9ke@mQo$yx;Gfd*CJo zZ9CHEbAIRho$ve3^B$i!m)6&LJRYHwSCj~%#XEieYUC3hQJQLD2*0Qllf@)45>?by zZwCh=8=%n$)cGJK)B#uTfF3d)m_i+GQ)FUW$PvE~6t)*-N-ygULIH^l(fSvm2mD&n_GhM&O*2!m z8L4DC-xkVcLbFv{geLp8Z1sBCmT|I;0io>)5RMJ?7v^3XbMX5IKE9IP?fJpp{Mk>Q z8T%P^qaX+kV=ctP5O+eCWFn9DXq#h3KNRxGk>hAcx3cc1FZ}fcs)rCM(VDk&qBWaL+i|Ga%5m5dNv6fJ`V~uR%-NxNcS}|1 z17|?b1LueH;6V)+64wRO^NL}yx{39_S$B{n-V?E4a>;!Yv z_c6!ho?(tfvaWE|-~SUd+|m2DM}_Dt+%6W2yH406`Z*hgKL5sEQJm8acCq3Ze(9rF zLF)+?2QGtNte}?!bpz)mrndyc8#o~`y(Y?uyCtUggh6~5c-EI&I{sX^a&2v6L*g># zGtr8l7dIpp?eh8iKLFvz{voMzQn1%uar}2MH{(b>539F_$-adUmg=Y^}~ zr+q;xi|5bw?%!um5yy!n|Ky;zfe8-Slm||G@MYTu&xJn&`)Q1JIbBZ?+hMCvoD_SR0W5>iJW?6 zqq6gW7=OOrD7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Q#4!ECD4gck0GBE#ha;1(#d^24E7^r&zxE1~9N*(77hzPJA zZv&&1a`8FaZve}GhbWgJ{$0R4rvYJqjOcW=FGKr-!`gSbuz@!31D|)|9qWBU^Z~oy zJU(&p>Hiuq|2{{gKdfJL?DtN4#xnw#-xsK5e@lV+ePI9ihB6-59sgut{txFpo#PV( z*2zF&z6;ZTgR4E`-Qv=d-v-R@C5o_z)fdg$IXfSZhoX2VSy|Iy)~{ICh-aC5k2j{> zVn+FVlN0($##LpSv5eWA$}~k%X3WlHb7mypCU6mJOy|c}jo~HrOKDC%9Yu3_8SQ_0*J_(TH`Hv|W^2^6 z6Z!Njp{6#$+o^hba-O3WFV?S57#B-kULD(}n~V3WA +#include +#include + +int main() +{ + float a[100],sum=0,x; + int n,i; + + printf("\nEnter degree of the polynomial X :: "); + scanf("%d",&n); + printf("\nEnter coefficient's of the polynomial X :: \n"); + for(i=n;i>=0;i--) + { + printf("\nEnter Coefficient of [ X^%d ] :: ",i); + scanf("%f",&a[i]); + } + + printf("\nEnter the value of X :: "); + scanf("%f",&x); + + for(i=n;i>0;i--) + { + sum=(sum+a[i])*x; + } + + sum=sum+a[0]; + + printf("\nValue of the polynomial is = [ %f ]\n",sum); + + return 0; +} \ No newline at end of file