j

Tuesday, 3 November 2015

Write a program that take ASCII code from user and display it corresponding character and the ask him to enter any character ther display its corresponding ASCII



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
int ascii;
printf("Enter the ASCII code ::");
scanf("%d",&ascii);
ch=ascii;
printf("Their corresponding character is %c",ch);
printf("Enetr the any character ::");
scanf("%c",&ch;
ascii=ch;
printf("Their corresponding ASCII value is %d",ascii);
getch();
}

Subscribe to this Blog via Email :