--- tags: DICE C --- 4-6 自主學習 === > [name=CHAWTeam] [time=Feb 16, 2022] --- 目錄:[DICE C語言程式破解](https://hackmd.io/@CHAWTeam/DiceC) 上一篇:[4-5 長方形](https://hackmd.io/@CHAWTeam/DiceC-4-5) 下一篇:[4_1 輸入2個整數](https://hackmd.io/@CHAWTeam/DiceC-4_1) --- 題目 --- ```! 寫一個程式,輸入一個整數,印出其在ASCII中代表的字母。 輸入範例: 97 輸出範例: a ``` :::info **ASCII**中文全名為**美國資訊交換標準代碼**,主要是設計給電腦用的編碼系統,讓每個文字都有屬於自己的編號。 > [維基百科](https://zh.wikipedia.org/wiki/ASCII) ::: 程式碼 --- ```c= #include <stdio.h> int main() { int num; scanf("%d", &num); printf("%c", num); //印出 ASCII 97 所代表的字元 return 0; } ``` 輸出 --- ```! 97 a ``` --- [查看我們在HackMD上的所有筆記](https://hackmd.io/@CHAWTeam) 目錄:[DICE C語言程式破解](https://hackmd.io/@CHAWTeam/DiceC) 上一篇:[4-5 長方形](https://hackmd.io/@CHAWTeam/DiceC-4-5) 下一篇:[4_1 輸入2個整數](https://hackmd.io/@CHAWTeam/DiceC-4_1) --- {%hackmd Iiu5mOixR7yWkPHKCkabBg %} <iframe class="LikeCoin" height="235" src="https://button.like.co/in/embed/chawteam/button?referrer=https://hackmd.io/@CHAWTeam/DiceC-4-6" width="100%"></iframe> --- {%hackmd i1nMRrZcTFmTvoF897K9zg %}
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up