How to use getchar() function to read and print in ASCII value

Code :