ASCII value of a character [closed]

ASCII value of a character
Tags: Type Cast
Given a character, find the ASCII value of it.
e.g. Some characters and their ASCII values
‘A’ – 65
‘Z’ – 90
‘p’ – 112
‘2’ – 50
and so on.

Input:
D

Output:
68

D’s ASCII value is 68.