Skip to content

Check if a number is Harshad Number of not or not. #2513

@ikrishagarwal

Description

@ikrishagarwal

Everyone of us know about niven number which is also called the Harshad Number

Harshad Number is a number which is divisible by the sum of its digits.

For example:
Input : 18

1+8 = 9
9 × 2 = 18

so 18 is a harshad number.

It would be good if we can have this in the collection of java algorithms' repository!

Wikipedia

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions