All tasks
Easystringsio

ASCII Code of a Character

Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0

Statement

You are given a single character: a Latin letter or a digit. Print its ASCII code.

Examples

Example 1
Input
A
Output
65
Example 2
Input
a
Output
97

Constraints

  • The character is a Latin letter (a-z, A-Z) or a digit (0-9)
Solve this task to unlock the editorial.

AI tutor

Stuck? Get a nudge — the tutor explains the idea, it never hands you the solution.