C Program to Convert Lowercase Character to Uppercase Character

include<stdio.h>
#include<conio.h>

int main()
{
	 char c;
	 clrscr();
	 printf("Enter any character: ");
	 scanf("%c", &c);
	
	 if(c>='a'&&c<='z')
	 {
		  c = c-32;
		  printf("Uppercase is: %c", c);
	 }
	 else
	 {
	  	printf("It is not lowercase character.");
	 }
	
	 getch();
	 return(0);
}

Output

Run 1:
-------------
Enter any character: g ↲
Uppercase is: G

Run 2:
-------------
Enter any character: G ↲
It is not lowercase character.

Run 3:
-------------
Enter any character: * ↲
It is not lowercase character.

Leave a Reply

Your email address will not be published. Required fields are marked *

https://atozonlinesolutions.com/wp-content/uploads/2017/03/logo_white.png
https://atozonlinesolutions.com/wp-content/uploads/2017/03/logo_white.png
About
Products
Subscribe

If you wish to receive our latest news in your email box, just subscribe to our newsletter. We won’t spam you, we promise!

    Applauz

    As the pioneer of the lean startup movement, APPLAUZ has dedicated it’s time to sharing effective business strategies that help new businesses and enterpreneurs put their money to work in the right way.

    Subscribe

    If you wish to receive our latest news in your email box, just subscribe to our newsletter. We won’t spam you, we promise!

      Applauz

      As the pioneer of the lean startup movement, APPLAUZ has dedicated it’s time to sharing effective business strategies that help new businesses and enterpreneurs put their money to work in the right way.

      Copyright by BOLD THEMES. All rights reserved.