Please write a program that can keep read in integers until 0, sum up all integers and print out the result.
請寫一個程式可以不斷地讀取輸入的正整數,直到讀到0 為止,並輸出所有正整數的和。
The input consists of several positive integers with the end of 0.
輸入為一連串的正整數,最後一個數字是0。
Sum of all integers
所有正整數的和
1 2 3 4 0
10
編號 | 身分 | 題目 | 主題 | 人氣 | 發表日期 |
沒有發現任何「解題報告」 |