C C++ program to convert lowercase to uppercase

C C++ program to convert lowercase to uppercase

C Language में उपलब्ध Operators और इनके विभिन्न प्रकारो को जानने के लिए देखें—Operators in C

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

C-Language में Operator Precedence और Associativity Rule क्या होता है जानने के लिए देखें— Precedence and Associativity in C

C program to convert lowercase to uppercase

#include<stdio.h>
int main()
{
    char ch;
    printf("Enter a lowercase letter: ");
    scanf("%c",&ch);
    ch=ch-32;
    printf("Uppercase = %c",ch);
    return 0;
}

C++ program to convert lowercase to uppercase

#include<iostream>
using namespace std;
int main()
{
    char ch;
    cout<<"Enter a lowercase letter: ";
    cin>>ch;
    ch=ch-32;
    cout<<"Uppercase = "<<ch;
    return 0;
}

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

C C++ program to convert lowercase to uppercase

Similar ASCII programs in C C++

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

Published by

admin

I am a computer teacher, programmer and web developer