casio1374633

导航

 
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
   char c;

   while ((c = getchar()) != EOF && ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) ) {
      printf ("%s%c\n", "The uppercase is   :", c & 0xDF);
      printf ("%s%c\n", "The lowercase is   :", c | 0x20);
      getchar();
}
   system("pause");
   return 0;
}

 

posted on 2013-04-29 20:29  casio1374633  阅读(235)  评论(0编辑  收藏  举报