Kriti has two numbers, her tution teacher give a task to her. The task is that, she wants to find the sum of all digits appearing between those two numbers.
For Ex:
Num1 = 8 and Num2 = 13
Output: 27
(8 + 9 + 1 + 0 + 1 + 1 + 1 + 2 + 1 +3)
Input Format
Input the Number1 Input the Number2
Constraints
0 <= Number1 <=10000
Number1 <= Number2 <=10000
(Negative Numbers and Decimals are not allowed)
Output Format
Display the Sum of all digits appearing between Number1 and Number2
Sample Input 0
8 13
Sample Output 0
27
Answers
Answered by
1
Answer:
Hyhfbdbtbtnfnfnrjbhggghh. Bbbn
Similar questions