Write a python program to counting digits in number with floor division


Sample Test Case:
Enter a number: 12345
5

Test case 1 : 
Enter a number: 58947856525
11

Test case 2:
Enter a number: 50
2

Test case 3 : 
Enter a number: -589
3


Write a python program to calculate the sum of digits of a number.


Enter a number:12345

15


Comments

Popular posts from this blog

TYL - Food Corner Program

TYL - Salary Hike - Python Problem

5 Questions for TYL on Strings(check if two string are anagrams)