Turn Desktop View Off
by Dinesh Thakur Category: C Programming (Pratical)

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

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Search Content