Eddy's mistakes

Source: Internet
Author: User

Problem description

Eddy usually writes articles, but he likes mixing the English letter uses, for example "Computer Science" is written frequently "Computer Science" by him, this mistakes lets Eddy's English teacher be extremely discontentment. now please you to write a procedure to be able in the Bob Article English letter to turn completely the small letter.

 

Input

The input contains several test cases. Each line consists a test case, expressed Eddy writes in an article, by letter, blank space, numeral as well as each kind of punctuation

Composition, the writing length does not surpass 1000 characters.

 

Output

For each test case, You shoshould output an only line, after namely the result of transforms the lowercase letter.

 

Sample Input

Welcome to hdoj ACM 2005!

 

Sample output

Welcome to hdoj ACM 2005!

 

 1 #include <stdio.h> 2 #include <ctype.h> 3   4 int main(){ 5     char c; 6       7     while((scanf("%c",&c))!=EOF){ 8           9         while(c!=‘\n‘){10             if(isupper(c)!=0)11                 c=tolower(c);12              13             printf("%c",c);14              15             c=getchar();16         }17          18         printf("\n");19     }20      21     return 0;22 }

 

Eddy's mistakes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.