Turn Desktop View Off
by Dinesh Thakur

In this program user ask to convert all the lower case character into uppercase. For this user declare two variable named lower and upper. Here in the program user ask to enter the character for converting. Then user use the method to convert like puts the lower variable into getchar() condition whenever it gets character it will turn into uppercase and then trespass the value to upper variable and print them in the end with printing method.

Problem statement:

This is C program that asks the user to covert the lower case character into upper case.

  1. Declaring the variables.
  2. Using conversion method.
  3. Display result on the screen.

Here is C source code for Converting the Character into Uppercase from lowercase. The output of this program shown below. 

#include <stdio.h>

#include <ctype.h>
void main ( )
{
       int lower, upper;
       clrscr();
       printf("Enter a Lower Character to Convert Uppercase : ");
       lower = getchar();
       upper = toupper(lower);
       putchar(upper);
       getch();
}
Output :

 C Program How  Convert Lowercase to Uppercase Character