Respuesta :
Question isn't well formatted :
Actual question :
One day, River writes down the numbers 1,2,...,999. What is the sum of all the digits that River wrote down?
Answer:
499500
Step-by-step explanation:
Number written :
1, 2,...., 999
The interpretation of the number written is 1 up to 999
Hence, the sum of the number written is the addition of all the numbers from 1 up to 999
Using the python program :
sum = 0
for i in range(1000):
sum += i
print (sum)
Output = 499500
Answer:
13500
Step-by-step explanation:
Notice how it says the sum of all of the DIGITs. We have to add together the sum of the digits. We can do this by:
300(1 + 2 + 3 + 4.... + 9) = 300*45 = 13500