Checking for Harshad Numbers

# Introduction In this lab, you need to create a program that takes an integer input, checks if it is a Harshad Number (divisible by the sum of its digits), and prints "Harshad Number" if it is divisible or "Not a Harshad Number" if it is not divisible.

|
60 : 00

Click the virtual machine below to start practicing