From c24973af02bc33f2f5f25d37e22ca91da5de3c47 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 4 Jun 2022 12:11:15 +0530 Subject: inital commit --- 2.10.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 2.10.c (limited to '2.10.c') diff --git a/2.10.c b/2.10.c new file mode 100644 index 0000000..edbf440 --- /dev/null +++ b/2.10.c @@ -0,0 +1,20 @@ +#include + +char lower(char intput); + +int +main(void) +{ + char intput; + + while((intput = getchar()) != EOF) + printf("%c", lower(intput)); + + return 0; +} + +char +lower(char intput) +{ + return (intput >= 'A' && intput <= 'Z') ? intput-'A'+'a' : intput; +} -- cgit v1.2.3