Let’s take a example

**
For number 29
**

Unit digit of 29
^{
3
}
= Unit digit of 9
^{
3
}

= Unit digit of 729

= 9

**
For number
**
**
77
**

Unit digit of 77
^{
3
}
= Unit digit of 7
^{
3
}

= Unit digit of 343

= 3

**
For number 3331
**

Unit digit of 3331
^{
3
}
= Unit digit of 1
^{
3
}

= Unit digit of 1

= 1

**
For number
**
**
8888
**

Unit digit of 8888
^{
3
}
= Unit digit of 8
^{
3
}

= Unit digit of 512

= 2

**
For
**
**
number
**
**
149
**

Unit digit of 149
^{
3
}
= Unit digit of 9
^{
3
}

= Unit digit of 729

= 9

**
For number 1005
**

Unit digit of 1005
^{
3
}
= Unit digit of 5
^{
3
}

= Unit digit of 125

= 5

**
For number
**
**
1024
**

Unit digit of 1024
^{
3
}
= Unit digit of 4
^{
3
}

= Unit digit of 64

= 4

**
For
**
**
number
**
**
5022
**

Unit digit of 5022
^{
3
}
= Unit digit of 2
^{
3
}

= Unit digit of 8

= 8

**
For number 53
**

Unit digit of 53
^{
3
}
= Unit digit of 3
^{
3
}

= Unit digit of 27

= 7