diff options
Diffstat (limited to '2.10.c')
-rw-r--r-- | 2.10.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#include <stdio.h> + +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; +} |