3^4=(3^2)^2\equiv (-1)^2\equiv 1\pmod {10}