2/21/2009

C Program To Print A Character For A Given ASCII Code



    /*Write a c program to print a character
          for a given ASCII code */
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n;
    printf("Enter the ASCII value :\n");
        scanf("%d",&n);
    printf("The character corresponding for ASCII value %d is %c \n",n,n);

    return 0;
}
Out Put:
Enter the ASCII value :
85
The character corresponding for ASCII value 85 is U

No comments:

Post a Comment