by Dinesh Thakur Category: C Programming (Pratical)

In this program user asks to text conversion from Lower case to uppercase. User declares the char type variable. User also uses the loop statement that will execute the concept of conversion. The other function for put char that has to get the character that converted. In the end the display the result on the screen as well.

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( )
               char letter [80] ;
               int count, tag;
     for (count = 0; ( letter [ count ] = getchar()) != '\n' ; ++count)
           tag = count;
     for (count = 0; count < tag; ++count)
Output :
hello dinesh

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.