diff --git a/Ascii_value.c b/Ascii_value.c new file mode 100644 index 0000000..9f75f3f --- /dev/null +++ b/Ascii_value.c @@ -0,0 +1,11 @@ +#include +void main() +{ + char c; + printf("Enter a character"); + scanf("%c",&c); + //%displays the integer value of character + //%c displays the actual character + printf("ASCII value of %c=%d",c,c); + +}