Skip to content

ArielShamay/NumberClassifier

Repository files navigation

NumberClassifier - Special Number Classification in C

Ariel Shamay

Email: arielsh49@gmail.com


Project Overview

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.


Main Features

  • 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.

Project Structure

  • 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.

Setup and Execution

Requirements

  • C Compiler (gcc recommended)

Installation and Compilation

Clone the repository and navigate to the project directory:

git clone <repository_url>
cd NumberClassifier

Compile the project using the provided Makefile:

make

Running the Application

Execute the compiled program:

./main

Technologies & Tools

  • C Programming Language
  • Makefile for automated compilation and execution

Notes

Ensure your development environment includes a C compiler such as gcc for successful compilation and execution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors