AllAlgorithms / algorithms

The All ▲lgorithms documentation website.
https://allalgorithms.com/
MIT License
161 stars 57 forks source link

Create Harshad_number_check.c #112

Closed Manojkumar2806 closed 2 weeks ago

Manojkumar2806 commented 1 month ago

Implemented a C program to determine if a given number is a Harshad number.

Added the isHarshad function to calculate the sum of digits and check divisibility.

Included input handling and result display in the main function.

I am creating a pull request for...