+ 1
Of course I can give you my code but I don't think that you would learn much. Where do you need help? To get the sum of your input number? Or to understand what a harshad number is? I would make a list what is needed: 1. User input --> how to get a number from the user? 2. How to get the sum of a number? 3. How to check if number and sum are divisible? 4. Print result --> divisible: harshad number, not divisible: no harshad number
21st Jan 2019, 7:43 PM
Denise Roßberg
Denise Roßberg - avatar