#include
#include
void main()
{
char ch;
printf("Enter the character = ");
scanf("%c",&ch);
if((ch>='a')&&ch<='z')
{
ch=ch-32;
printf("Upper case is = %c",ch);
}
else
{
ch=ch+32;
printf("Lower case is = %c",ch);
}
getch();
}
Related Posts:
Write a program to print ASCII value of a given character #include#includevoid main(){ char ch; printf("Enter the character = ");&nbs… Read More
Accept a Number from user and find reverse of it #include#includevoid main(){ int i,n; printf("Enter the Number … Read More
Write a program to print the sum of even position & product of odd position digit of any inputted Number #include#includevoid main(){ int n,i,temp=0,a=1; printf("Enter … Read More
Write a program to print all even number from 1 to N terms #include#includevoid main(){ int n,i; printf("Enter the Number … Read More
Accept a Number from user and check whether it is Prime or Not #include#includevoid main(){ int n,i; printf("Enter the Number … Read More
Write a program to print table of a given number #include#includevoid main(){ int n,i,table; printf("Enter Number which you want table =… Read More