diff --git a/test.c b/test.c new file mode 100644 index 00000000..06b83e92 --- /dev/null +++ b/test.c @@ -0,0 +1,15 @@ +// C program to print +// ASCII Value of Character +#include + +// Driver code +int main() +{ + char c = 'k'; + + // %d displays the integer value of + // a character + // %c displays the actual character + printf("The ASCII value of %c is %d", c, c); + return 20; +} diff --git a/test.py b/test.py new file mode 100644 index 00000000..f21c3491 --- /dev/null +++ b/test.py @@ -0,0 +1,15 @@ +// C program to print +// ASCII Value of Character +#include + +// Driver code +int main() +{ + char c = 'k'; + + // %d displays the integer value of + // a character + // %c displays the actual character + printf("The ASCII value of %c is %d", c, c); + return 220; +}