#include<stdio.h>
#define MAX 1000
int main(void)
{
char ch
[MAX
];
gets(ch
);
for(int i
=0;ch
[i
] != '\0';i
++)
{
if(ch
[i
] >='a' && ch
[i
] <='z')
{
ch
[i
] = ch
[i
] - 32;
}
}
printf("大写字母显示:"\n
);
puts(ch
);
printf('\0');
for(int i
=0;ch
[i
] != '\0';i
++)
{
if(ch
[i
] >='A' && ch
[i
] <='Z')
{
ch
[i
] = ch
[i
] + 32;
}
}
puts(ch
);
return 0;
}
转载请注明原文地址: https://yun.8miu.com/read-20669.html