Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #digit #codechef #solution
ADD COMMENT
Topic
Name
3+6 =