From 7318d5a7bb2c4a6fb4ebf70b8ca14ecf072e2b47 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Thu, 3 Mar 2022 13:08:40 +0100 Subject: [PATCH] funguje --- du1/Makefile | 1 + du1/Makefile.c | 0 du1/program | Bin 0 -> 5186 bytes du1/program.c | 35 ++++++++++++++++++++++++++++++++++- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 du1/Makefile create mode 100644 du1/Makefile.c create mode 100755 du1/program diff --git a/du1/Makefile b/du1/Makefile new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/du1/Makefile @@ -0,0 +1 @@ + diff --git a/du1/Makefile.c b/du1/Makefile.c new file mode 100644 index 0000000..e69de29 diff --git a/du1/program b/du1/program new file mode 100755 index 0000000000000000000000000000000000000000..c6d46618126269d39640a3b84fd09aff8508a675 GIT binary patch literal 5186 zcmb7Ie{2-T6`ngE(cepq*V z#Ez^6dUXf_OQee0RE?0TN^Sl~Ris#z)m9DU2#EHN(x|E;6{)ETmE97_Ern7k;re|u zJFs?$)IRCm%=g}#_ukCDnVs90+Pd09p^(rN7BzzCa5)lfLi@|8(liM}M8yiROw@_F z5K-537&c%z0E6a076I2#2i$Z7dhkQQWa{XfEQw>md*G1F@nV6}OWAjz1J`4~3NYhR zA4cN%cBu%qQ2cw~9$S*DnSO z>73UODF^tYvvxWsHg$Ejv|4M-b$5D=Oo8*&H5o#WYfL6Rl1|U#if%_=$|Vkqy;3Vg z?{_27xp3g1y$=&ku?5bs#R3nq#e{a2uSF++h(SjxTkwpImp`sntD|SUIg=)Y<#W-! z72l%})wTODs=E9DekrUjr}q@QQy*ejbvdJ?sGGVZF{7oJ-qab188x+p_%!h9kMDKI65KV6;HP|R?hE1Tl?iwj zNdCsIV^_=9mRyL`Q(3)qv2t?EdrC|YN&B<6!pGh{`?qDGOTW8S!oZ))f$!^q#}f4s zJ@|bN9)F4khrdDxqV$k-ADtXQis$E07P@%7(tq*?2e2U#{&Ahh!*}wa26;>kW5|?;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`&sgS+QzADa@5q`$l0t6(P7k6y{r8?E{6?$7T_(zpzs*WGRErlM=`0EkI z{P{0qI)LNA`tC&i^T6_kjW&c^Qa@TfzYtEQF<{=e(4Y=u;(KU$uObfNO*g@gPs}G+ zXTXt`QL_>x(NBL z3M61awgvb!=Fdu96pjfSSg*H%)yf3y`Lw?QEdPa|zX17<0`r^(g#Y>CcwqbjjDI~a z-hj=IfrtG37KR^{?||Tc+e*Nm@je9R-!fbJkBMpE!~S^2zd`IjKhE!CV7?DHAO2Ua z!Ni04&L@Vygzs-L7se+8?TP?q{FcCY=Gz_6(>?{P_uC@ww`9R9dZqq;Gl@Uin_G8S zU7b67@h9DJ3+_O=h#R8iWvyf;pL2`i9wN(f^435m-)Cnm$IBOrmR%YWxOfd_T+emP zwd=mz2+#L0vUmkl7di`j!gi?n8FRq(tihz^rAoPjX5WzDZB%``@V{ql+^9caU|n2! zS@nHe0oz%hOt65(yp^(Z4g<~pYBKBl$czYgC%`EqVh-!zPq}~4O1*%*aaZ<5^7D$d l`H;24fB3B#yI91NpZRI#ZiIEvU={T0b9r=;%v>B9{l6i4xAg!3 literal 0 HcmV?d00001 diff --git a/du1/program.c b/du1/program.c index d00491f..e3cb97f 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1 +1,34 @@ -1 +#include +#include +#include + +int main(){ + int counter; + printf("Enter a number: "); + scanf("%d",&counter); + printf("\nPočet riadkov: %d\n",counter); + int i= 0; + int decrypted_string(); + while(1){ + i = getchar(); + if(decrypted_string[i]>='a' && decrypted_string[i]<='z'){ + decrypted_string[i]-=32; + } + if(decrypted_string[i]>='A' && decrypted_string[i]<='Z'){ + decrypted_string[i]+=32; + } + + putchar(i); + i++; + } +} + + + + +/*for(int i=0; decrypted_string[i]!='\0'; i++){ + if(decrypted_string[i]>='a' && decrypted_string[i]<='z'){ + decrypted_string[i]-=32; + } + } +*/