Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>
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;
}