1. Write a C program that takes a character from the user and prints its corresponding ASCII value

PHOTO EMBED

Sat Jul 22 2023 11:47:16 GMT+0000 (Coordinated Universal Time)

Saved by @Codes

// Online C compiler to run C program online
#include <stdio.h>

int main() {
    char ch;
    printf("Enter the character: ");
    scanf("%c", &ch); 
    while(ch <= 'z'){
        printf("%d", ch);
        break;
    }
   

    return 0;
}
content_copyCOPY