Write a C Program that input any ASCII number and display appropriate character on screen


Program:
#include<stdio.h>
int main()

{
    int n;

    printf("Please enter ASCII number: ");
    scanf("%d", &n);

    printf("The appropriate character of ASCII %d: %c", n,n);


    return 0;
}

Output:
Please enter ASCII number: 97
The appropriate character of ASCII 97: a
Process returned 0 (0x0)   execution time : 4.219 s
Press any key to continue.
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment