From ffdca1dfc32153327d42b4f02525171c8b15a8e4 Mon Sep 17 00:00:00 2001 From: Nazar Sendetskyi Date: Thu, 3 Mar 2022 22:23:08 +0100 Subject: [PATCH] sad --- du1/.program.c.swp | Bin 0 -> 12288 bytes du1/program | Bin 0 -> 5294 bytes du1/program.c | 21 +++++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 du1/.program.c.swp create mode 100755 du1/program diff --git a/du1/.program.c.swp b/du1/.program.c.swp new file mode 100644 index 0000000000000000000000000000000000000000..a8c867635767497241c14ba4944be433ae0bfc51 GIT binary patch literal 12288 zcmeI1O=}ZD7{{mfAU)WMf)_8-ly*17=B;X_O$sF_c<|*?4-$~g?j#wL%!bKqib}nB z6hDABub!mf(PKY?SHYVg`UyPff7)1tK#|^*{{z45FwaY#{T-85`N8cwa=my}AkGVs z6&G8duFZ=5nh<7GEnn|F@tG4N9jH!pV#QJN`D9>eIDQ;gtED8Xl!i9#*l19U|DvBI zG(ZEVG?2OW>Wy45DYqyuUf4P1Ahyu}4bT7$&;Sk401eOp4g9MH+;B$x#PVmr zB``Aq4+ag;01eOp4bT7$&;Sk401eOp4bZ@UVjxO{Xv_=o4*387{cix@7lil*K7)_o z0K5lp!E5jmyZ{b#!CkNcE`zh+2WEW*U%&^j5B&T$fI$N^Km#;D12jMbG(ZD1Km#;D z1Jeffrb5hFC+<{#q@-?#4Y^g9!FC{5R!~#J`C*WsYT5QJ z$JH2fT>aEnPj)F3epl5or)hkuWmVMs~4u)H*1Wi literal 0 HcmV?d00001 diff --git a/du1/program b/du1/program new file mode 100755 index 0000000000000000000000000000000000000000..3b373e33418d6abe9b6e8e510c6bec0ce965829e GIT binary patch literal 5294 zcmb7IeQXrR6`wnw;X=$|K9Z2&hE;N;(Bj1qLnu*IA2#O87-9@*la^)eTl=n@@2tB$ zVj~10R|pnZauV96QWO!1MwUudOGTBHqSVCZBUPlj`6G&2q*9egb|Dfigz`ti_4k|E zfwdu0JJQ>k-@G^Py?OiQV|V|WhW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ax$<}BavNq=Mz(_F?%*y%WJPy8u!&)=5`7Vgf8QP6*I zCWts`M9T|ITc?$H3A4iu+v}45bF2-!ttKx;YEyPDhy1WCL`1&{hDs;Q#6U^2{{_?e B@B;t< literal 0 HcmV?d00001 diff --git a/du1/program.c b/du1/program.c index 53c5fdf..1e4e824 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1 +1,22 @@ #include + +int main(){ + int C = 0; + char Big_Wort; + int count = 0; + while(1){ + C = getchar(); + if(C == EOF) + break; + if(C == '\n') + count++; + if(C >= 'a' && C <= 'z') + C = C - 'a' + 'A'; + else if(C >= 'A' && C <= 'Z') + C = C - 'A' + 'a'; + Big_Wort = C; + putchar(Big_Wort); + } + printf("\nCount of lines: %d\n",count); + return 0; +}