Uppercase to lowercase

Title description
Input an uppercase letter from the keyboard and output it in lowercase instead.
Input
an uppercase English character
Output the
corresponding lowercase English character.
Sample input Copy
A
Sample output Copy
a

AC code

#include <iostream>
using namespace std;
int main()
{
    
    
    char ch;
    scanf("%c",&ch);
    //大写字母ASCII小,小写字母ASCII大
    printf("%c",ch + 32);
    return 0;
}

Guess you like

Origin blog.csdn.net/smallrain6/article/details/113100842