1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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; }