ASCII code
Time limit: |
1000 ms |
|
Memory limit: |
32768 K |
Description
ASCII code: American Standard Code for information interchange. In a computer's storage unit, an ascii code value occupies one byte and 52 letters (including uppercase letters) such as A, B, C, and D) and numbers 0, 1, 2, and some common symbols (such as *, #, @, etc.) can be stored in the ASCII code form, each symbol corresponds to a unique ASCII code value. For example, if the ASCII value of A is, the ASCII value of 0 is 48.
Input
There are multiple groups of test data, each group of test data is a character (uppercase/lowercase letters, or a digit), each group of data occupies a row
Output
Output the corresponding ASCII code value. Each group of output occupies one line,
Sample Input
A
0
B
9
Sample output
97
48
66
57
# Include <iostream. h>
Int main ()
{Char C;
While (CIN> C)
{Cout <(INT) C <Endl ;}// force conversion
Return 0;
}