Asc ii Code

Source: Internet
Author: User
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;
}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.