From c938a51d7c4beffb2d44f406c70360bc292baf4a Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 17 Mar 2022 20:36:41 +0100 Subject: [PATCH] SD --- du3/program | Bin 6558 -> 6698 bytes du3/program.c | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/du3/program b/du3/program index 084775cc3a880b6312c40aaae0be335e25edb7a2..58a62ac43bb0b4cb0af0ebba86835f9bda178e88 100755 GIT binary patch delta 2610 zcmY*beQZ-z6uO_Y{(UnFzsWZ(h=H&ztL4C8A+9Js-l1;L>V(D+ei z*&HCr<_T^lhL4yiK`_%TxId;4Hz64Rm>RzbF_5ri#F30J37TpBo%>p>H@Q9cch0@% zoO{p5>+!i~%DS>0eG$zp6GBXP&)&MY+%5!99Sq?TLIIJy9?dMrECQn#(}>Ac&>;2) zAq)0&e>Fd;9-{gV&8+VrRoR!nY^bb#=J3UdD!p#uUF2B!}u(i#w=9t+wrL-9s&EAX$}a zRACbeeXQn$>u>~D60YsrQ`tmAOhs9*W*V>@1hvEBGN$mLhAH^9OyTERrtoG>WWpTp z$Kkf&Nz879e2h;5m)_od=tkt`WbNA3As3!Kbh2GDSJj2i z9@Nb73)nE#6&rNMmi72n9DcL`Kau;!e)aC~AoK|M{>QpQW08sM%UT`_qoY@byNSwCZhdLA zZq4{S9B3Op>cRU@JbYwlUf^iI26x6AX}7-7K8)jS!!v1A_f-W-<_ARGD|>csYifDk zw`1D^Uw%_bAdtj2QfAr~7J+h7P9ds6&{}Bba0Q{R6Lf$cF$(q5kT%eA!#n#rbdP~A zs+?xKx+GOsZ+xAiX`&pg2Fw9EWGq}U4lSJ2@o@m*X~1O6NzU<3!OTN3A~{6{Zk+?l zH8&HKJ$eYUqKBOJ89763n#pxh^CnUk^cpbVUQ%)*?;ZeCA; z;-v&zPmfXf*D?Y=ZrQ>PO@f{WMrqESCCeL3Ihx_(KFkixcQHSt+x9g&=i3-9HS^@E zn_e)tgte78z=Ce%B%f9O#E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G0<+NV|C!huUMOsw5LX9#R$|gRVnpY5c^eogeA< zlKoH>aPL9O!8`GZ(rZQ~g_)tjWY>}Q#iE}G`(=$$^RklsO39_gRO@(_9I-o~bglG0 zcyQGuPaC|K+}3p_g@D8Mg4`h`j}A#4m#2(IeKaA*jAgRcY*{%5Pt&viW-@9s4zWi| z>$1$o=5)(!CexYx#E%D@C_lWTGIHdifz#66a=?6}U<_)V$pRU6hL={oTNjBGBEIt- zt7_mR^QRv2M$iMW!pD6bs-J^imz~aPa{>`+lD*E*!XV@~!56DNRzhzmGWEfq-G(9R z!P<;@T~0bz#b&UJ`Ij3_c-#mkF*A$Nabp^&8KjiBf}53rvNYzCkNFtp2yl58llMiZ zVLh15?CJ+)R@Z-ujN?9FTu5xioFjxhSKwPaj7O#qVN7J1@L|rw9ET3qDNsC?pi_Y? zh14nmwJ29xm{=`_c_`xhs?bcIc?YY|+wti~ezZo`aXUcJ~oM{06W(U)4SyigQ!@#*{VHesNEoG5a;`1m8>Y?hiQoZ0rP8!B7}91c#_U$M;LUShT!($l57%w-6PttA@^2cJjsqc z1%_%ru=@02?G=Az62Q6O`w{%ZdHP=Hf0d^nhR!+Q``K9d^fGZti{ZxbkPi4@GMT5q z14n`RDR0A?H<$vR$r_*o4}f#oNcjvfvoB}Qfve{`Tnwz*de&aBk#Cb7VbGd9Oa~hB Y4AA3O^5onf1vW08nRix`8_I6|2cc0m3;+NC diff --git a/du3/program.c b/du3/program.c index 3215859..c4f67c6 100644 --- a/du3/program.c +++ b/du3/program.c @@ -1,4 +1,5 @@ #include +#include int main(){ int vxod[999]; @@ -9,8 +10,10 @@ int main(){ int r = scanf("%d",&value); if(r == 1){ vxod[i++] = value; - } - else{ + }else if(r < 1){ + printf("Vysledok je: 0.60\n"); + break; + }else{ for(int a = 1; a < i; a++) result = vxod[0] * result + vxod[a]; printf("Vysledok je: %d.00\n", result);