first and last digit codechef solution

Solutions on MaxInterview for first and last digit codechef solution by the best coders in the world

showing results for - "first and last digit codechef solution"
Finn
29 Sep 2016
1t=int(input())
2for i in range(t):
3    x=str(input())
4    a=int(x[0])
5    b=int(x[-1])
6    c=a+b
7    print(c)