Solution :
#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
scanf("%c", &ch);
if(ch>='A' && ch <='Z')
printf("%c",ch+32);
else
printf("%c",ch);
getch();
}
Program Analysis :
Here ch is a character type variable,we use % c to get input character from user or terminal.+ 32 works like a converter to convert uppercase letter to lowercase.
The program says,If any uppercase number inputted by user then convert it to lowercase number otherwise print the number what user inputted because it is already lowercase character.
Post a Comment