c++

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


 

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.

 

 

 

 

 

 

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;
}

Similar Posts:

    None Found

Leave a Reply

Your email address will not be published. Required fields are marked *