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