#include <safe-c.h>

integer_type char_lower(integer_type c)
{
  if ((c >= 'A') && (c <= 'Z'))
    c = c + 'a' - 'A';
  return(c);
}


void main(void)
{
  string_type s;
  integer_type n;

  put_string("Welcome to LOWER.\n");
  put_string("Please enter a string:\n");
  get_string(s);

  n = 0;
  while (s[n] != 0)
  {
    s[n] = char_lower(s[n]);
    n++;
  }


  put_string("Here is the converted string:\n");
  put_string(s);
}
