mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
17 lines
294 B
C++
17 lines
294 B
C++
|
#include <stdio.h>
|
||
|
#include <ctype.h>
|
||
|
#include <string.h>
|
||
|
int main()
|
||
|
{
|
||
|
int i,len;
|
||
|
char s[1000];
|
||
|
while(gets(s))
|
||
|
{
|
||
|
len = strlen(s);
|
||
|
for(i=0;i<len;i++)
|
||
|
if(isupper(s[i]))s[i]=tolower(s[i]);
|
||
|
printf("%s\n",s);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|