Introduction - If you have any usage issues, please Google them yourself
Read in some integers and output their sum.
The input is multiline, an integer for each action. The input ends with End of file .
You can guarantee that the operation and the final operation will not cross the line.
The output
The sum of these integers.
The input sample
1
2
3
4 sample output
10 tips
Use scanf ( d , & num) 1 to determine whether the input is finished. If this condition is false, enter the end (for this problem).