From 77dfe1dc96f5ec1778ef615956daa6264edfee66 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 14:05:32 +0100 Subject: [PATCH] SAD --- du2/program | Bin 5470 -> 5422 bytes du2/program.c | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/du2/program b/du2/program index 98429510aaca1390f5405a9a22b6052be806d85e..75e2879ec68572f9f56b26094a4abab2ba8cef83 100755 GIT binary patch delta 1388 zcmah}Uuaup6hB|?y~(YnS(2t}I=iKR(#k4ZSO2UJBGz)j2zdxDRVQO)I>u$|!v-yT zDRfzqX^e%&Q_u;*rh@ul8Fb1NAF5&2;!EA|ZEPKMkh*S6Mr|MF?tbT{8NT_!y}xt5 zbISW~i&l0DDH!i&Y`Owa6q`AC4aP{=t{GmGMc~Icpo|)$dKhaIE2kAf`h|_}b z-xAb_4hZT*`*N#h^$QfvRt7kzb!HL>INeFyMU~Sn1h$wfOAc1I5ZMx2S#*6Nv>~2W z=3HNh?Wp({;P>A-SiG5AzL!eBZZ8!OInEzxeS44Lp&FVO+{%XjcTDV_1 zGIc(Q0fKr*y+-rn8c80}V-u^wf;FFyS8Eo{TXE@tCV@pOu0s!D^40GjI!-YkUq&eR zlM8CBwUmxWOZm9a6w~>(T+LLsf5fH`maKeRY1%b&zbMd|#k5PQ3*~bY;M`2lRn?2N zoUv#AFL{q7um9^fx1*>ib<}1GC`8M6)@>Mra@X*i{mvWvsxP2gwz3dL1FLPNk@%iT z->i;_RZsAov0qhqoA-k!etY0J7APVQdB(d}jq@#USM*ENx{FPEC14gjLyd;#ugiX2 zCvNwRwl3q)=vR(uxJ~u1b^#$Rav~|n^39QG4m@;9p>%+m{$^(4Ic7$dN*Kh z7<|;SC?d96wAZ|pMMFNF8Ql0!epSy&b< zi@$-DftBGuV9A-V5p80BAfjyU2t2LM@oTuB;uE;f&7KWBsU}1kq?1Nl1W5D=YVwI< ziAX_>LINaG1vSD{u|%+-Moj`FvIRAY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(=OM?RO9LlCFJLn_B(;b$V=J%LZ5{U?A~{vw=| z4-g)DbNsBIryz6%v6c`;-E>3dHiZ#{Z-Pr-0jRZ&?gCpIlXyE$LQ9vTI3>ZuQ+zZs zsH$9wBzJh17)fEe?UoR1bv25vR=}&g7)eIYH@6ZAB&*9^x$zMN2!w< oaDU3FXtG~EgdD60ifZ`vJ-EbH@LUmxQ1QFb0p%=w6ul7m54|gf)c^nh diff --git a/du2/program.c b/du2/program.c index 7363f56..86e73d1 100644 --- a/du2/program.c +++ b/du2/program.c @@ -3,7 +3,7 @@ int main(){ int results[VELKOST_POLA]; - int max; + //int max; //int value = 0; int i = 0; int a = 0; @@ -12,18 +12,18 @@ int main(){ int r = scanf("%d",&value); if (r == 1){ results[i] = value; - max = results[0]; - if(max < results[i]) - max = results[i]; + //max = results[0]; + /*if(max < results[i]) + max = results[i];*/ i++; }else{ break; } } do{ - printf("Súťažiaci č. %d vypil %d pohárovav.\n", results[a], results[a]); + printf("Súťažiaci č. %d vypil %d pohárovav.\n", /*results[a]*/a+1, results[a]); if(a == i - 1){ - printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n", max, max); + printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n", a+1, results[a]); break; } a++;