fork(1) download
  1. # your code goes here
  2. t = int(input("enter the testcase "))
  3. first = 0
  4. last = 0
  5. for i in range(t) :
  6. n = int(input())
  7. last = n % 10
  8. while n>=10 :
  9. n = n/10
  10. first = int(n)
  11. print(first+last)
  12.  
Runtime error #stdin #stdout #stderr 0.11s 23344KB
stdin
Standard input is empty
stdout
enter the testcase 
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
EOFError: EOF when reading a line