C program to convert an alphabet to lower case to upper case and upper case to lower case

UPPERCASE TO LOWERCASE

#include<stdio.h>
#include<conio.h>
int main()
{     
clrscr();
char c;
printf(“Enter one digit in uppercase\n”);
scanf(“%c”,&c);
c=c+32;
printf(“character in lowercase will be  = %c”,c);
getch();
return 0;
}

2.  LOWERCASE TO UPPERCASE

#include<stdio.h>
#include<conio.h>
int main()
{   
 clrscr();
char c;
printf(“Enter one digit in lowercase\n”);
scanf(“%c”,&c);
c=c-32;
printf(“character in uppercase will be  = %c”,c);
getch();
return 0;
}
C program to convert an alphabet to lower case to upper case and upper case to lower case