C Program Returns NonZero if CH is a LowerCase Letter; OtherWise Zero is Reture
Menu
Turn Mobile View Off
by Dinesh Thakur

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.

  1. Declare the variables.
  2. Using the method.
  3. 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;
}

C Program Returns NonZero if CH is a LowerCase Letter; OtherWise Zero is Reture

Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off