From eb88512ab3c6dfec4e73fe95da3f36ba1219b991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Chmel=C3=A1r?= Date: Mon, 1 Mar 2021 18:35:22 +0100 Subject: [PATCH] first push --- du1/program.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 du1/program.c diff --git a/du1/program.c b/du1/program.c new file mode 100644 index 0000000..90318a3 --- /dev/null +++ b/du1/program.c @@ -0,0 +1,18 @@ +#include +#include + +int main() { + int c = 0; + while(1) { + c = getchar(); + } + if (c == islower(c)) { + c = toupper(c); + } + else if (c == isupper(c)) { + c = tolower(c); + } + return 0; +} + +