Find ASCII value of any character
#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
printf("Enter any character :");
scanf("%c",&ch);
printf("\n The ASCII value of %c is %d",ch,ch);
getch();
return 0;
}
#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
printf("Enter any character :");
scanf("%c",&ch);
printf("\n The ASCII value of %c is %d",ch,ch);
getch();
return 0;
}
No comments:
Post a Comment