vedant1771 / Hactoberfest2021

Repository for Hactoberfest2021
34 stars 463 forks source link

Divided into function #603

Closed paradoxmr24 closed 2 years ago

paradoxmr24 commented 2 years ago

Created a separate function called is_armstrong(int num) which return an integer value depending on whether the given number is armstrong or not (1 for an armstrong number and 0 for other numbers)