View Code of Problem 25

#include <stdio.h>
 
int trans()
{
        char c1,c2;
        //printf("请输入一个大写字母:\n");
       // c1=getchar();
        scanf("%c",&c1);
       // printf("%c,%d\n",c1,c1);
        c2=c1+32;
        printf("%c\n",c2);
        return 0;
 
}
 
 
 
 
int main()
{       int t;
        //printf("一共几组数据:\n");
        scanf("%d",&t);//共t组数据
        while(t>0)
        {
                getchar();
                trans();
                t--;
        }
}

Double click to view unformatted code.


Back to problem 25