Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(void)
- {
- char word;
- printf("請輸入一個字元:");
- scanf("%c", &word);
- printf("輸入內容:%c \n", word);
- printf("您輸入的內容之ASCII是:%d",word);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment