6-1

#include<stdio.h>

int main(void)

{

         int i;

         char ch_lower,ch_upper;

         for(i=1;i<=6;i++)

         {

                   scanf("%c",&ch_lower);

                   if(ch_lower>='a'&&ch_lower<='z')

                            ch_upper=ch_lower-'a'+'A';

                   printf("%c->%c->%d\n",ch_lower,ch_upper,ch_upper%10);

         }

         return 0;

}

posted @ 2013-10-06 15:18  zhaoyang16  阅读(129)  评论(0编辑  收藏  举报