C-Plus-Plus
C-Plus-Plus copied to clipboard
feat: Add implementation for Armstrong number check
Description of Change
This pull request includes the addition of a new program to check if a number is an Armstrong number. The changes introduce a new file others/armstrong_number.cpp
with the implementation details.
Checklist
- [x] Added description of change
- [x] Added file name matches File name guidelines
- [x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
- [x] Relevant documentation/comments is changed or added
- [x] PR title follows semantic commit guidelines
- [x] Search previous suggestions before making a new one, as yours may be a duplicate.
- [x] I acknowledge that all my contributions will be made under the project's license.
Notes:
New features added: others/armstrong_number.cpp
: Added a program to check if a number is an Armstrong number, including functions isArmstrong
to determine if a number is an Armstrong number and printArmstrongResult
to print the result.