From 1d6925703bda089e8604c06629cf0adb86ec129a Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Thu, 23 Feb 2023 13:17:36 +0100 Subject: [PATCH] k --- du1/program | Bin 0 -> 17880 bytes du1/program.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 du1/program diff --git a/du1/program b/du1/program new file mode 100755 index 0000000000000000000000000000000000000000..b13f1b95f0a41df5e5e65233c8a09db6a0c80bf2 GIT binary patch literal 17880 zcmeHPYiu0V6}~g;vDevn?YyWVKqetkoYGxC2yQ}bvTJ*tF*uI~hgS)c_3n6ggLl^2 zoefSXkH{3UN&_i$ z_SdittRD0_8{_2>E})dBv|KIy0{4ML-ZP@yEw2=IB&mfck+)R3pzsosOdJRD>>{BP zPO?|DgCyaV`czS)OYRd5BkAN}Y-U27HzVRl@^(?*At8x}D)Qz8Z%*(?PK)|TQamvx zxV<3!x#a+qVIqmPnD)J8B{A<;QClo~ILt^A?@PeLc7E1GVc#$6TPiNCqWvVr;j;Ge z%xL%4_VHwBJYyCoLzCOOL)}}$g zH+g4x1lx^mK!0e13GFHTC^42;&X4OjcowR3&ifz!2sB{L4(d0osp@CNR}-p@I3sv8ShBX%)ETkKPm)CkWZ zj{TNWTZHEj7q>nt@}w65F9Kc!ya;#^@FL(vz>9zvfkhF}rvC2NPAIRnGp2p@v?Z6% zX;UxwpRd@JuYUuI%A4MVee=2qw}r%5kr=Py~S!NEsi z?!aH39<%Eq{zJW6fX9mM2ehf)SHOyCrMIl*+KJv}fX{^BkY>`bdr^@FmrDkl*>usS~le(u;7AT9C2lY_G?lz|Or4ZD7&chEMi3e}S>+ ztwW_(q6dabA4Nx^rTGKe$q)nhmf<*ZY<}=@EgFba+n%wFP>%MG{-a!u zplz^aFxYxibKqY8Lu}_2J3fEi#tjG~AATNSPl25u0g;e<7i{-KeUpeqgDsE9{Y~|9 z0b0a4Ujg_6lpnOEhlAUq!H#IK ztuLtd1zW+sFX*?wKfVC;S@0u5fZn|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Kgxu%GF>hWGYGhxNUKgSW&+ z^pR-aa16cLYtIseqTOg(u@?Ev>&}d1+=`0@Zq+RJsy0_C^7wi+S{LUss9w;fCkr_} z9XFG>*llPpFq0WmFBS|4#KJLPG(jIN6ohMgw4>{=R*u4mi|A^ujH_OiSJfC6E*#Cm z;0C0X=Q2$>7*iSf2^KbUmJv>w#qek`11l;sNdZOshG1NjVs=?NUP!ZW@~8>^xU}-T z^@CiQInFLgyv(Pg%4$o^CBFVzg;j_?>0W(I6DWJs76kHub&6s03%Ew1X^TrX< zU{$F>c?cI>j{mX5Cplc=a1ZB+#*rl5Pjs|(rfWdKw;JNpc$4Htr!nN|K1XmjWSo2& zmy%S;P)Ij_0PugoJ1W&r<5!YYf8{;i`5-i*i2UkexBuWtnm zhs>4wMFVMEOuq|&iJjc>yBkn^2PZy_n@Q3$i`q|iB<}$}zSEOV<7<+tT`T`y?rgt+ z*)hmqlZj8`aFVBmA=U3b{)Yv>PuS6TouuaA!{}jA{2l`g+f`YMO5-&lk>gAvycMVf zIVWEgJd%-$CC|9r+rQg5`GUoDkzXh_Hebbck_P-B~HGka#NCiEOaD_ z8$mBa2FL1n4Pm13D6PA9+mlZ6kHBe$jrcT9pADh6h5p911)cbRfdcG%#HaTx`o9L# zqW#oAiAU%0yTC;g;?w)sg?0cTwQ*6|6QAVUP~zmXh%oKoQV0PqZvQ`_#L1`eYKI_F zJIMjnOZvx* z68!H7;*Xt9A@AmISc2c%$%*_wFf2H6^Ko908$;_S1pn~`s-1J&_6WZFIM;V^;_FNB z$q!1pcB@RU + + + +int main(){ + int c= 0; + int n=0; // pocet nacitanych znakov + while(1){ + c = getchar(); + + if(c!=-1){ //-1 eof koniec vstupu + if( c >= 'a' && c <= 'z'){ //porovnavam cisla v ascii tabulke + c=c+'A'-'a'; //velke pismeno na male + } + else if(c >= 'A' && c <= 'Z'){ + c=c-'A'+'a'; //male pismeno na velke + } + } + else{ + break; + } + n++; + putchar(c); + + +} +printf("%d\n", n); //vypise pocet zpouzitych znakov +return 0; +} \ No newline at end of file