C programming
Web tutorials on C programming
Pages
Home
plsql
Web development
minor projects
java programming
Python Programming
Wednesday, 30 September 2015
WAP to input a character and print its ASCII
#include<stdio.h>
#include<conio.h>
void main()
{
char c;
clrscr();
printf("Enter a character: ");
scanf("%c",&c);
printf("ASCII value of %c = %d",c,c);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment