aboutsummaryrefslogblamecommitdiff
path: root/2.10.c
blob: edbf44073ac73b55c952e80106995f13748e1f7a (plain) (tree)



















                                                                    
#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;
}