Sum of numbers from text file

Report a typo

Copy the following block into the data.txt file on your computer and write a program to count the sum of all the numbers in the file. The answer to the problem is the number representing the sum of the numbers in the file.

95
62
189
151
160
13
173
127
116
192
62
108
143
67
38
33
177
64
199
3
184
174
155
60
113
47
138
194
7
45
38
139
6
40
152
14
41
150
75
129
Enter a number
___

Create a free account to access the full topic