--- tags: DICE C --- 14-4 輸入整10個整數 === > [name=CHAWTeam] --- 目錄:[DICE C語言程式破解](https://hackmd.io/@CHAWTeam/DiceC) --- 題目 --- ```! 請撰寫一程式,輸入10個整數,印出10個整數。 輸入範例: 6 1 2 3 5 6 7 8 8 8 輸出範例: 6 1 2 3 5 6 7 8 8 8 ``` 程式碼 --- ```c= #include <stdio.h> int main() { int x, i = 0; while (i < 10) { scanf("%d", &x); printf("%d\n", x); i++; } return 0; } ``` 執行 --- ### 輸入 ```! 6 1 2 3 5 6 7 8 8 8 ``` ### 輸出 ```! 6 1 2 3 5 6 7 8 8 8 ``` --- [查看我們在HackMD上的所有筆記](https://hackmd.io/@CHAWTeam) 目錄:[DICE C語言程式破解](https://hackmd.io/@CHAWTeam/DiceC) --- {%hackmd Iiu5mOixR7yWkPHKCkabBg %} <iframe class="LikeCoin" height="235" src="https://button.like.co/in/embed/chawteam/button?referrer=https://hackmd.io/@CHAWTeam/DiceC-14-2" width="100%"></iframe> --- {%hackmd i1nMRrZcTFmTvoF897K9zg %}