From 7744b6e7184375f77ef66d57e44e4a0e70041648 Mon Sep 17 00:00:00 2001 From: kr820js Date: Sat, 17 Feb 2024 17:49:04 +0100 Subject: [PATCH] first program submiting --- cv1/program.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cv1/program.c b/cv1/program.c index 8b13789..c7666a1 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -1 +1,16 @@ +#include + +int main() +{ + char c; + while ((c = getchar()) != EOF) { + if(c<='z'&&c>='a'){ + c=c+('A'-'a'); + }else if(c<='Z'&&c>='A'){ + c=c-('A'-'a'); + } + printf("%c",c); + } + return 0; +}