#include<stdio.h>
#include<conio.h>
void main()
{
char a,b;
do{
printf("Enter the key which you want to know ASCII value\t");
a=getch();
printf("\n\nthe ASCII value of key you have entered is: %d",a);
printf("\n\nwant to know more 'y' for yes, 'n' for no(Y/N)\n\n");
b=getch();
}while(b=='y' || b=='Y');
getch();
}
#include<conio.h>
void main()
{
char a,b;
do{
printf("Enter the key which you want to know ASCII value\t");
a=getch();
printf("\n\nthe ASCII value of key you have entered is: %d",a);
printf("\n\nwant to know more 'y' for yes, 'n' for no(Y/N)\n\n");
b=getch();
}while(b=='y' || b=='Y');
getch();
}
No comments:
Post a Comment