Program to accept a character in the uppercase and print in lower case - 100 Most Important C# Programs

100 Most Important C# Programs

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

Code:

# include <stdio.h>

# include <conio.h>

main( )

{

char ch,c1;

clrscr( );

printf(“enter a cha in uppercase”);

ch=getchar();

c1=ch+32;

printf(“the given char in lowercasecase

is”);

putchar(c1);

getch();

}