From bcfd9404f4068f24c8a253b6af1c8ba5e77acba1 Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Sat, 15 Apr 2023 11:12:14 +0200 Subject: [PATCH] . --- du6/program | Bin 0 -> 19488 bytes du6/program.c | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 du6/program create mode 100644 du6/program.c diff --git a/du6/program b/du6/program new file mode 100755 index 0000000000000000000000000000000000000000..2713a09cbb78fc7e52ae7339add1bdcb8c2ed2a0 GIT binary patch literal 19488 zcmeHPeQ;FQb-!;{4?Rg}B_zPYq-7z{h`QR90L#K4SP2Q9r~n0n1F`XAwfiJ3tajDi zw;;KhF)=2w2Fu0Mk0DLn(rGhwXPT+=huyT(aiL})c4soUGpU($+)&q;W4CgQ z+5XOb_bj_lt7N9rX=gfnHM{4Y&wK8<_q{!L_Z>aaKe*GUX@Z+yY!if?Yji0Q#W=b{ zbpRrwOVr{0(_)QS1iVVpTzEaZ1tZ0N=2`JwAFc%F_U) zv`qjFmXah!_L|Dj?^%G}x&VFK0`xTt(4PT4h?lp~ekteAS3wVYg@K3hqA|RUuFEB2 zg&2ys9Nvc_>ttdRQ^K+m*>r64W-A+urbfg>&dGumPo%`is4e@Mq@99TY%*$%BvR32 z;&B@&mN{l+ooL3f#-orXoL0G0>>3>C-C=DAJy7Uv2;DENfdhN2xSg>_6IsX39N4oX znNHaUqQgnDHaeb8DQlK1T2@d_!H2!z{_)PBJ)wa%1jq}2Pa;uI{Ld>|?%qTV?V`A} zf$LpeuN;qwB`)KZhu*H}X2j*QJmc55yL8%%w1>FeD5A^znPSWq(W_Y)@KzBWjuzTn z5uNruH(pP&P5Yi(OT_JwZHf!GV8rbaUEM+@p|yz4_Y7jR7txFFA6-Rsjs?kAS|tLN z2vj0ai9jU+l?YTKP>I0*Yy`~H?;7S={VnAA=9!C*FMrKEec5=mFi8IXx53J5EQ~y&8Va{}4f>eIluR!O6hE;u%G!4X@(Vrx+ zdCpme>D&pSkLlFpZ#1krM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S;7Bq^9`kI_R4Be(6=@d8b z`cH#dtRGZ*438Eoqwg^k_hYbx$t@zM6^~H6y8~%;Sa$n))x^a+U`O|6}2!Q*8eFO#rhGY5K;Q< zr&pixkI*4o>_6v^LksA8?cIScjjzPfa~tb_h6xIiEH#GJ=y2cVxbG*GL9bn}?D7Tl z|4b=v<%ucdUi~!-=>OYBSAl-MDQ;eUdOp=lBl$Nsxmxt?e{u7mVyn{k&T|`mFrq!d z7p99A#$r1JJt9)_VwbCMOKsfMKsVsU`-bnoHK2JyBo$xWE`b>K80T?aE}f0a>o@hf L61zMK9#s4ny%VWD literal 0 HcmV?d00001 diff --git a/du6/program.c b/du6/program.c new file mode 100644 index 0000000..a098906 --- /dev/null +++ b/du6/program.c @@ -0,0 +1,25 @@ +#include +#include +#include + +int main(){ + int pocet=0; + char mena[50][50]; + char riadok[50]; + int pocet_mien=0; + + scanf("%d\n", &pocet); + while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){ + if(riadok[strlen(riadok)-1]=='\n'){ + riadok[strlen(riadok)-1]='\0'; + } + strcpy(mena[pocet_mien],riadok); + pocet_mien++ ; + } + for(int i=0; i