From 50984aae5e67cbcf5bbe3118948695c37cbf24be Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 14:29:00 +0100 Subject: [PATCH] ASD --- du2/program | Bin 5646 -> 5582 bytes du2/program.c | 11 +++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/du2/program b/du2/program index 0a1a77346c10a4f7abc1537bdf29b8928852da1d..5aba91efffd5bb963eb6fe87110f1fcbb66d6f4c 100755 GIT binary patch delta 1515 zcmZuxUuauZ7(eIUo10s0)8wY@vM6ax(=M{Dt_p6eS~dwoAB5@J*@rQlO3A}s9Gib& ztZw-;Vpi$+1_{Do13{4q!|b6C6=M@!CPlL8gTlZFncQe5>aZwmyZ*kLW^~|zbARXi z|NG88=e)n^+l}*K89V*RYZE265IkK1!z+XYIJ&%MlrUpZY{Jx6?Fw)i{>!i}=T9#^ z`9K4vMn*Fl8B*k%eJAct9DRHL!spegZ@&9|Tz&lPwreYNN?wxtXs1$qdazfjX2_WVh!skihS*2oxF0ZJTrg3ik(L8P^U=$y&}~-oz+6KElz`R zIUem}oC9X#Q4KU+K?~NGcWpbHidrxw7afqj>64IhlhM9hD$4QM$y6X0j|Sk^U`tz@ zi>CrlwKd0v*68l@nia{CgrV z50p=_%TI7=ZiZ=1(f>_&A){?Gtn+Ypwg=mKZ%n;BX7Al&xzPRb@(mNsw;s+NjBc4L zYDjF2-JvmkS`xjd2dSdR=tDhBEj`|K@V0Ho(My%KySFOg+jPhs@lT^dknhG$kC9fM z?Qy9C^pX3WU>t1ML(Ny^As|k!2x3<9G;ZutN(DM$98;F_MWyQ#Ri2?wy9Zqy6Q`@) zL#}D8rs?1AA-#cBL#Iej#N|Dy8D4t6XGrIyB{v=FiRcw9D{lG#OFj=(H!Wf5TtYYf ziYUHUi{$el3agSqP`y zQp!`tH+o=km8=BW8mt{M5@fDB-tF81_8Fm`s<#Lng*!!2Wu`WmbK_>}dc0`)%n${aNL**Sn%+FMiw);0KR-riK|5*7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.c b/du2/program.c index c37959a..c1c7ea4 100644 --- a/du2/program.c +++ b/du2/program.c @@ -6,7 +6,7 @@ int main(){ int max; int i = 0; int first; - int a = 0; + //int a = 0; while(1){ int value = 0; int r = scanf("%d",&value); @@ -17,21 +17,24 @@ int main(){ max = results[i]; first = i + 1; } + printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); i++; }else if(i == 0){ printf("Chyba: Málo platných hodnôt.\n"); }else{ + printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",i+1,results[i]); break; } } - do{ + /*do{ printf("Súťažiaci č. %d vypil %d pohárov.\n",a+1,results[a]); if(a == i - 1){ - a = first - 1; + a = first; printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",a+1,max); + printf("%d %d\n", a, first); break; } a++; - }while(a < i); + }while(a < i);*/ return 0; }