DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+6 =
Submit