C++ Program .Write a program to convert given character into uppercase &vice versa.

#include<stdio.h>
#include<conio.h>
void main()
{
char ch,ans;
clrscr();
printf("\n enter the character");
scanf("\n %c",&ch);
if(ch>=65 && ch<=90)
{
  ans=ch+32;
  printf("\n lowercase character is %c",ans);
  }
  if(ch>=97 && ch<=122)
  {
  ans=ch-32;
  printf("\n uppercase character is %c",ans);
  }
getch();
}