GO Solution For UVa 10515 - Powers Et Al.. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Finding the exponent of any number can be very troublesome as it grows exponentially. But in this problem you will have to do a very simple task. Given two non-negative numbers m and n, you will have to find the last digit of mn in decimal number system.

Input The input file contains less than 1000

...

You can find the full details of the problem Powers Et Al. at UVa Online Judge

Sample Input

2 2
2 5
0 0

Sample Output

4
2

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985