/* to display ASCII values */
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
printf("Enter character: ");
scanf("%c",&n);
printf("The ASCII value of %c is %d",n,n);
system("pause");
return 0;
}
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
printf("Enter character: ");
scanf("%c",&n);
printf("The ASCII value of %c is %d",n,n);
system("pause");
return 0;
}
No comments:
Post a Comment