From 3f0c3eeeca070e613d54f6fed196dbfd9872c810 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Thu, 10 Mar 2022 20:30:17 +0100 Subject: [PATCH] funguje --- du2/program | Bin 0 -> 5450 bytes du2/program.c | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100755 du2/program diff --git a/du2/program b/du2/program new file mode 100755 index 0000000000000000000000000000000000000000..eaa9129a1ffbef9169ea17c28bb4ab401dbfc598 GIT binary patch literal 5450 zcmb7IZERG>6`lQnY=T*g1H}n$*fvWFRlFEtf@xHRwT=0RF<={_3d-~I?%Hp|de_>0 zOYF#^&@}+;i`pnRjR2?EBH?<|dEFBXsc!pCCF?@CRy9Uw%?)YDGu{#452uREhcM zqOSG`I1p(7qj~7_LwwW$*B*r)@-#4oI{K!_LR(136GBjEFUpl(_Wc|>NEimIAdE}B z7gY-U6m*msU<&n&LD>raR>Y<>0#meZ*JpNo5ahwP{Q=60&{4F0H}rsCDcb*5=mk=7SYJi&h)pPK( zz*Sf)&SNnjf?;&`WYR{?HnX;22rNmAOYyQWw(Uf3JefA~xkMbiWG)lixY5YP%ygIN z%_h@!7kX*nSofI8wAj+Tt-irn7uoQzRl^~0zB(s8XmO1xEX$I~g2WN5I1Xwsj_H1wOxyUO z=H|@N+cWSxIT*f8|0uUMj5LNThu@JM7eDoSt~p}~VST3Fe^4q7EAnvTVCAui!%GSZ zdI}#%la~&Ec*`?7*%+32f|~n|0j5}^+%n;SfDRCc&B7%Qq6CK8<*dVu^eq)h65Bz9 z!;O~?f74|Pi*g4RCTP#0kneGNUr{3)_{nfPn9#$2z?n@mW1Ro8RFW%&6_#bs>uXDU z+oqNx_R-=M?8L(Ds^L_)X5{yNtk~3U@J9*)&DB>gKJXs9XMbnp4+w~ z)-p!vo%cyBOnNr{C;!*N<*I!Lj2{+nEp(^P=pDpW`47*?e@0}&^Zem{TZxmft@z%R zUz=AhB+Xbdba^DQG9EhA-@A+R64{s;dLt3axoyBZXlJs; z^N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xN|-oVF7a)!!pxx2AcczXwG+{SrHyhfKx`qG}ghHa#ycmy@_$-uIzNl&rHVlLq@Cf h@EcNQE{7*S`xDip2pgcmD(Kbc^5`U)y*M)Ze*xD=5#Rs- literal 0 HcmV?d00001 diff --git a/du2/program.c b/du2/program.c index 1b5d64d..dbe4dab 100644 --- a/du2/program.c +++ b/du2/program.c @@ -10,18 +10,18 @@ int main(){ int drinks_counter[VELKOST_POLA]; int i=0; while(imax.drinks){ max.drinks=drinks_counter[j]; - max.position=j; + max.position=j+1; } } printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",max.position,max.drinks);