C Program to Convert Character to Lowercase

In this tutorial you will learn about the C Program to Convert Character to Lowercase and its application with practical example.

C Program to Convert Character to Lowercase

In this tutorial, we will learn to create a C program that will Convert Character to Lowercase in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • Conditional Statements in C programming.

What is a character?

The character is a single entity in the English language or in any word. These characters can be any alphabets in lower case or upper case.

The lower case means the small letters. And the upper case means the capital letters of the English language.

For Example:-

In the word “W3Adda”, there are six characters, they are as follows

  1. ‘W’
  2. ‘3’
  3. ‘A’
  4. ‘d’
  5. ‘d’
  6. ‘a’

Here,

‘W’ is a character in the Upper case.

‘3’ is a digit.

‘A’ is a character in the upper case.

‘d’ is a character in the lowercase.

‘d’ is a character in the lower case.

‘a’ is a character in the lowercase.

Algorithm:-

Program to Convert Character to Lowercase

First, we will take the input character from the user. Then will pass that character in the conditional statements to check and convert it into the character to lower case.

With the help of this program, we can convert that character to lower case.

Program Code:-

Output:-

In the above program, we have first initialized the required variable.

  • Chr = it will hold the character value for the input.

Input character from the user.

Checking the given character is an alphabet and covert it into a lower case alphabet.

Printing lowercase characters.

In this tutorial we have learn about the C Program to Convert Character to Lowercase and its application with practical example. I hope you will like this tutorial.