diff --git a/c/ASCII value b/c/ASCII value new file mode 100644 index 0000000..07a38ea --- /dev/null +++ b/c/ASCII value @@ -0,0 +1,13 @@ +#include +int main() { + char c; //variable declaration + printf("Enter a character: "); + scanf("%c", &c); //taking input + + // %d displays the integer value of a character + // %c displays the actual character typed by you + + printf("ASCII value of %c = %d", c, c); + + return 0; +}