Completely Solved C, C++ Programs Assignment.




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

Filed Under:

Problem 25. 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 cha in uppercase”);
ch=getchar();
c1=ch+32;
printf(“the given char in lowercasecase is”);
putchar(c1);
getch();
}
C compiler: gcc 4.1.2

 Back to main directory: Sample C Program | Software Practical | Solved C Assignment


Get Free Programming Tutorials and Solved assignments