Divisible by Sum of Digits (Problem 23) - InfyTQ Solution in Python

Divisible by Sum of Digits (Problem 23)

InfyTQ Solution in Python

Photo by George Becker from Pexels

PROBLEM STATEMENT

Write a python function to find out whether a number is divisible by the sum of its digits. If so return True,else return False.


Sample Input Expected Output
42 True
66 False




SOLUTION
SHARE If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
Newer Posts Newer Posts Older Posts Older Posts

More posts

Comments

Post a Comment

Sponsored Content