file - ascii.c
#include<stdio.h>
#include<conio.h>
void main() {
char ch;
clrscr();
printf("enter a character\n");
scanf ("%c",&ch);
printf("ascii value of %c=%d",ch,ch);
getch ();
}
#include<stdio.h>
#include<conio.h>
void main() {
char ch;
clrscr();
printf("enter a character\n");
scanf ("%c",&ch);
printf("ascii value of %c=%d",ch,ch);
getch ();
}
No comments:
Post a Comment