C++ Program .Write a program to accept a character & display next & previus ascii value.

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\n enter the character");
scanf("\n %c",&ch);
printf("\n the ascii value of character %d",ch);
printf("\n the next value of character is %d",ch+1);
printf("\n the previous ascii value character is %d",ch-1);
getch();
}