Thank you moe,Yes.u r answer is correct.
but I did not understand this part
and anything to the power of 2, mean that first I should check where it is repeating,then, that reaping one is the unit digit or else ,I strucked up here.
2^1=2
2^2=4
2^3=8
2^4=16
2^5=32 (back to the start, unit = 2)
for 8 it's simmilar to 2:
8, 4, 2, 6
3 and 7 are simmilar too:
3, 9, 7, 1 and 7, 9, 3, 1
I think I have not understand the concept perfectly,can you please help me by saying bit clearly.