i must write a program that will convert lower case letters to upper case and vice versa and if a number is entered it must display char is not a letter
here is what ave written but when i run it it does not do the conversion.thanks
//to convert lower case letters to uppercase and vice-versa
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
cout<<"enter a character";
cin>>ch;
{
if((ch>=65)&&(ch<=122))
{
if((ch>=97)&&(ch<=122))
ch=ch-32;
cout<<"The upper case character corresponding is"<<endl;}
{if((ch>=65)&&(ch<=90))
ch=ch+32;
cout<<"The lower case character corresponding is"<<endl;}
cout<<"the character is not a letter"<<endl;
}
getch();
}