From f44ae3a4dfda92dbdb89e371aa32dd4bd9b59cc2 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Tue, 1 Mar 2022 18:33:11 +0100 Subject: [PATCH] SAD --- du1/program.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/du1/program.c b/du1/program.c index e1d516d..0f9d5b3 100644 --- a/du1/program.c +++ b/du1/program.c @@ -2,16 +2,14 @@ int main(){ int c = 0; - int big; + //int big; char d; while( c != EOF){ c = getchar(); if (c >= 'a' && c <= 'z'){ - big = c - 'a' + 'A'; - d = big; - c = d; + d = c - 'a' + 'A'; } - putchar (c); + putchar (d); } return 0; }