This is C program to check out the content is lower case or uppercase. Core concept is to show the if the content CH is lower case then Non Zero result will be display as result else the result will zero. For this user declare some required variables for containing the values. Then user define if statement along with for loop. The condition which gets the true will display as result on screen.
Problem Statement:
This is C program that ask user to check out the content is lower or uppercase.
- Declare the variables.
- Using the method.
- Display result on the screen.
Here is C source code to check out the content is lower or uppercase. The output of this program shown below.
#include <ctype.h>
#include <stdio.h>
int main(void)
{
char ch;
clrscr();
for(;;)
{
ch = getchar();
if(ch == '.')
{
break;
}
if(islower(ch))
{
printf("%c is lowercase\n", ch);
}
}
getch();
return 0;
}