AnkitWebLogic

Q1. WAP to Print ASCII Value of input character. 1

#include<stdio.h>
//WAP to Print ASCII Value of input character.
int main()
{
    char ch;
    printf("Enter character:");
    ch = getche();
    printf("\nASCII Value of %c is %d",ch, ch);
    return 0;
}
Enter character:a
ASCII Value of a is 97