C++ Program to Check Whether an Entered Character is Lowercase or Uppercase Full Project For Beginners

  • Post author:
  • Post category:c++
  • Post comments:0 Comments

 

Welcome folks today in this blog post we will be checking whether an entered character is lowercase or uppercase in c++ All the full source code of the application is shown below.

 

 

 

Get Started

 

 

 

In order to get started you need to make a app.cpp file and copy paste the following code

 

 

app.cpp

 

 

#include<iostream>
using namespace std;

int main()
{
  char ch,i,flag=0;
  cout<<"Enter any character: ";
  cin>>ch;
  for(i=97;i<=122;i++)
  {
    if(ch==i)
    {
    flag=1;
          break;
          }
  }
  
  if(flag==1)
  cout<<"It is a Lowercase Character.";
  else
  cout<<"It is an Uppercase Character.";

  return 0;
}

Leave a Reply