ASCII code

Description:

Write a C program to generate ASCII code for a given character. Test Case 1 Input (stdin) C Expected Output 67 Test Case 2 Input (stdin) Z Expected Output 90

Program :

#include <stdio.h>

int main()

{

char a;

  scanf ("%c",&a);

  printf ("%d",a);

return 0;

}