Email: arielsh49@gmail.com
NumberClassifier is a C program that provides various mathematical functions to classify and analyze numbers based on special properties such as Armstrong numbers, palindromes, prime numbers, and strong numbers. It offers both basic and advanced implementations, including recursive and iterative methods.
- Armstrong Number Check: Determine if a number is an Armstrong number.
- Palindrome Check: Verify if a number reads the same backward as forward.
- Prime Number Check: Identify if a number is prime.
- Strong Number Check: Check if a number equals the sum of factorials of its digits.
- Multiple Implementations: Includes both recursive and loop-based approaches.
NumClass.h: Header file declaring all public functions.basicClassification.c: Basic iterative implementations of number checks.advancedClassificationLoop.c: Advanced number classification using loop methods.advancedClassificationRecursion.c: Advanced number classification using recursive methods.main.c: Main file for executing and testing functions.makefile: Build automation for compiling the project.
- C Compiler (
gccrecommended)
Clone the repository and navigate to the project directory:
git clone <repository_url>
cd NumberClassifierCompile the project using the provided Makefile:
makeExecute the compiled program:
./main- C Programming Language
- Makefile for automated compilation and execution
Ensure your development environment includes a C compiler such as gcc for successful compilation and execution.