first and last digit codechef solution code example
Example: first and last digit codechef solution
t=int(input())
for i in range(t):
x=str(input())
a=int(x[0])
b=int(x[-1])
c=a+b
print(c)
t=int(input())
for i in range(t):
x=str(input())
a=int(x[0])
b=int(x[-1])
c=a+b
print(c)