Description
Enter an ASCII code and output the corresponding character.
Input
An integer, the ASCII code of the character, which guarantees the existence of the corresponding visible character.
Output
A line containing the corresponding character.
Input sample
65
Output sample
A
Answer
1 | #include<iostream> #include<cstdio> using namespace std; int main() { int n; scanf("%d",&n); printf("%c",char(n)); return 0; } |
Result
Used memory: 200kB
Run time: 0ms
Language:G++
Submit time:2021-04-20 10:23:50
Problem link
http://noi.openjudge.cn/ch0102/08/
OpenJudge 08:Print Characters
Comments