From ff927260861949a8c164b6b7fc35f9000b3af275 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 13:41:53 +0100 Subject: [PATCH] lk --- du3/program | Bin 6930 -> 7898 bytes du3/program.c | 13 +++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/du3/program b/du3/program index f0a512a949346f7925b2a7e240cc51507418c632..6578e8890e2bf602994325ddb75dce9e4e2f43d0 100755 GIT binary patch literal 7898 zcmb7J4{%h+dEa;UB)vo85E8Z(L+x{r40yzy5CRiJV}yi2j*Mjxm^6-`pYGo2&YbSl zyLU2T+!icILNOE4$v95NZA|}o+-Wl<6DFfcoD5htnEsj4Oq!Uqap-^(QOJylv7>1) z*WYjVt#p#@>2zYD0c!G03TEjOd^lANitCvbOQ!S)EBjiFYBHM57Y>S zW)RyYKft^S^fl;%CQ&4j&o)R~A-@%ElRAM(n%Db|muP@+!xv18)C?X;^B)Bt@Iy)4 zk7d&Ru}orRCY>$rjTUmzR;3HqWZ$-I+bMPFCv_qq+Fk@=Y{-xQWXF@mp*PR``ERdX zdhL#Xc;&6n_dP})yQSNa@c`CI_8S0QlXi$HL(F{ta@mwD|NUn!of_Eb(4|=^R)*?O zUONZVmQE2AHfVsH@^^x69x^TVXCVe-1@eX$GzQnU2L^LlyWlx_&$b0Z6=#Un3cLFe z)F#qdyI61&LKekPKArWFB01oC1*lTmR~>ZHS+S+3dsBzq8f`%<0Xgmg^p^cL@MGt6 z2W!*m`IOm)I;Kg?i%JBPzEv=w$g9vflQ|4n%)zf=j?U~Dy=F~(6LJT}FJYXHjNUAj zN{3E)6%!Aja`biUbK}T`D6N@-7}W-j(wbv!xW>ymCrn zwwP)lJ^{Sy*H0Y&uhGksy?xtL7ZKOg5FU^2NrFm=O8Mt_+f_28ZcgK^*j^D%!i{|gr ze%vE5lB$V&`1qhXF;KJhvn@3gAxOyC| zoh~!)de->VZ;QVeeSOL2p0GbZesz9%bI0CA^Kx#F z!}5XgDz?b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P<|rmeW0im~D17yqJX{n7OdcZeZ?2PwqG3qeP>6~7Ptz*Wf; p$y=+ntjAj8O@^kVoy}q int main(){ + char riadok[999]; float vxod[999]; int i = 0; float result = 0; while(1){ - float value = 0; - float r = scanf("%f", &value); - if(r == 1) - vxod[i++] = value; - else if(r <= 255 && r >= 0){ + + char* r = fgets(riadok,999,stdin); + if(*r != '\n') + vxod[i++] = *r; + /*else if(*r <= 255 && *r >= 0){ if(i != 0) printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i); else printf("Nepodarilo sa nacitat zaklad x\n"); break; - }else{ + }*/else{ for(int a = 1; a < i; a++) result = vxod[0] * result + vxod[a]; printf("Vysledok je: %.2f\n", result);