/*WAP to print the character entered by user in upper case*/
//Header files
#include<stdio.h>
#include<conio.h>
//Main function
void main()
{
char ch;
//Function for clearing screen
clrscr();
printf("Enter a character in lower case:");
ch=getchar();
// using if-else conditional statements
if((ch>='a')&&(ch<='z'))
{
char c;
c=('A'+(ch-'a'));
printf("Upper case= %c",c);
}
else
{
printf("%c",ch);
}
//Function for holding screen until any key is pressed
getch();
}