aboutsummaryrefslogtreecommitdiff
path: root/2.10.c
blob: edbf44073ac73b55c952e80106995f13748e1f7a (plain) (blame)
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;
}