DevJourney · code I wrote while learning

main.c

151 B
#include <stdio.h>

int main() {
    char ch;
    printf("Enter character: ");
    scanf("%c", &ch);
    printf("Ascii value of %c is %d\n", ch, ch);
}