#include<stdio.h>
main()
{
char c;
printf("Enter the character whose ASCII value is to be known: ");
scanf("%c",&c);
printf("\n The ASCII value of %c is %d \n",c,c);
}
main()
{
char c;
printf("Enter the character whose ASCII value is to be known: ");
scanf("%c",&c);
printf("\n The ASCII value of %c is %d \n",c,c);
}
No comments:
Post a Comment