One Question of the Day 81

Question 81: Input an uppercase letter from the keyboard, and it is required to use lowercase letters for output. Use puthchar and getchar functions to program.
#include<stdio.h>
int main()
{ char ch; ch=getchar(); if(ch<'A'||ch>'Z') { printf("The input is not capital letters, please re-enter! \n”); } ch=ch+32; putchar(ch); putchar('\n');








Guess you like

Origin blog.csdn.net/drake_gagaga/article/details/114155693