Sum of Tenth and Unit Digits

The program must accept a number N and print the sum of tenth and unit digits.

Input Format:
The first line denotes the value of N.

Output Format:
The first line contains the sum of tenth and unit digits.

Boundary Conditions:
10 <= N <= 9999999

Example Input/Output 1:
Input:
231

Output:
4

Example Input/Output 2:
Input:
100

Output:
0

Example Input/Output 3:
Input:
192

Output:
11

n=int(input())
u=int(n%10)
t=int((n/10)%10)
print(u+t)

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts. You may also be interested in.