From b9668e0125772f4e1e593f2fe5d48f80bd4806e7 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 12:05:07 +0100 Subject: [PATCH] DSA --- du3/program | Bin 6758 -> 6998 bytes du3/program.c | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/du3/program b/du3/program index d885a5fefd554a1ab9e5ec6cd51e273d95594b81..86e0affcc94bf627dd9e169f56b04387da9d9609 100755 GIT binary patch delta 2701 zcmZWr4@^~M6#wph_g?Pf&*S~U2dMe3@Ibb}JsT>^KZ#Q5qJ~O_)0CG+h!p+-bI$oN zKxIThC!1`Iw6=7W8%<|!QKFD$YYnqM=y0KC!30OC%@+CkoqOMNY<=7J&i6a#JLfz1 zeCM3+{g(UFtd^A6jygrp6+&b=TGL*bAJB#1se&V%LP#Jc?|`BQFtfnO#?&Hm8FVi8 z&xLI6fz~s#VvA#hDBi2+#d}GXwq+bVTlLt*HY4=Ich_CF4 z3uo|gkq+t98GQ78Nfm@7e=N5q_4g zDF38h(Fadq!=0AMppR_HvsXbmrvyKB_q12#+ubK&N5J>H&oT8Z zT%9RSGQxhkXUlrplzh*U9CW*;wFL;K~3US5}7V{auh>QVX&9^3X2>?K^TW z{f}2;G}ZgR<$VS9{wu3Z_3Mbl;MIS_;i0GC*(J3I2BMnhO-oxAMe(gm5zdUdPScL4 zPPHsf77=gmu{nadn;YR<7K{z0dWzH{SyusfR^A8&abii;qX4tN;<7gQ#&9nr4h|H zbr9*gpX(~$p*P426I5HP^i{l~`?@M=v9(?}w{8LAkICUqkVM_5;U)R$#^nLBGeimIRPW z>;r#c5~d3?8FLIeyuJg9SPFK^6QOXsst0^Ty^8%D1wBFe`s|0eLxEwAGI+fWa}VY_ zm>*KBzFg&+*-t~dU*lE&9`e}BqRWtdMZ%Q^MNh|fYC$1+>6-nBw3(V>vvYWNQs>dm zR{3F%e#7R}%WRvc%UK?qLvOcjEfKOJX?lsKPkm3Xzf66xHxu55YqF@(ne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/program.c +++ b/du3/program.c @@ -9,9 +9,9 @@ int main(){ float r = scanf("%f", &value); if(r == 1){ vxod[i++] = value; - }else if(r == '\n') - continue; - else if(r <= 255 && r >= 0){ + }else if(r == '\n'){ + printf("Vysledok je: %.2f\n", vxod[i]); + }else if(r <= 255 && r >= 0){ if(i != 0) printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i); else