C C++ program to convert uppercase to lowercase

C C++ program to convert uppercase to lowercase

विभिन्न प्रकार के Computer Coding Systems जैसे—BCD, ASCII, EBCDIC आदि के बारे में अधिक जानने के लिए देखें—Computer Coding Systems

Procedure Oriented Programming (POP) और Object Oriented Programming (OOP) में अंतर जानने के लिए देखें—POP vs OOP

C और C++ दोनों भाषाओं में महत्वपूर्ण अंतर क्या है जानने के लिए देखें—C vs C++

C program to convert uppercase to lowercase

#include<stdio.h>
int main()
{
    char ch;
    printf("Enter an uppercase letter: ");
    scanf("%c",&ch);
    ch=ch+32;
    printf("Lowercase = %c",ch);
    return 0;
}

C++ program to convert uppercase to lowercase

#include<iostream>
using namespace std;
int main()
{
    char ch;
    cout<<"Enter an uppercase letter: ";
    cin>>ch;
    ch=ch+32;
    cout<<"Lowercase = "<<ch;
    return 0;
}

Output of C C++ program to convert uppercase to lowercase

C C++ program to convert uppercase to lowercase

Important ASCII table programs in C C++

  1. Find ASCII values of a character
  2. Convert lowercase to uppercase
  3. Print complete ASCII table
Share it to:

Published by

admin

I am a computer teacher, programmer and web developer