diff --git a/test.py b/test.py new file mode 100644 index 0000000..50aa799 --- /dev/null +++ b/test.py @@ -0,0 +1,12 @@ +#include +int main() { + char c; + printf("Enter a character: "); + scanf("%d", &d); + + // %d displays the integer value of a character + // %c displays the actual character + printf("ASCII value of %d = %d", c, c); + + return 0; +}