the easy way is to only add up the last digits
the first 10 are
0,1,2,3,4,5,6,7,8,9
then it starts over
repeats 9 times
then it does 1,2,3,4
so we find 0+1+2+3+4+5+6+7+8+9 and m ultiply by 9
then add 1+2+3+4
0+1+2+3+4+5+6+7+8+9=45
we only need th last dgit so
5 times 9=45
we need the last digit
5
then add that to 1+2+3+4=10
15
15+5=0
answer is 0 is the last digit