C Program to accept a character in the uppercase and print in lower case

CWC
0 Min Read

C Program to accept a character in the uppercase and print in lower case

# include <stdio.h>
# include <conio.h>
main( )
{
char ch,c1;
clrscr( );
printf(“enter a char in Uppercase”);
ch=getchar();
c1=ch+32;
printf(“the given char in Lowercase is”);
putchar(c1);
getch();
}

 

Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version