C Calculator is a command-line calculator application that demonstrates fundamental programming concepts in C. It provides basic arithmetic operations with a clean, user-friendly interface designed for learning and practical use.
- Basic Arithmetic Operations: Addition, subtraction, multiplication, and division
- Lightweight: Minimal dependencies and fast execution
- Educational: Clean code structure ideal for learning C programming
- Cross-Platform: Compatible with any system that supports a C compiler
- GCC compiler (or any C compiler)
- Terminal/Command Prompt
- Clone the repository:
git clone https://github.com/achille010/c-calc.git
cd c-calc- Compile the program:
gcc calc.c -o calc- Run the calculator:
./calcOn Windows:
calc.exeAfter launching the calculator, follow the on-screen prompts to perform calculations. Enter your numbers and select the desired operation when prompted.
c-calc/
├── calc.c # Main calculator implementation
└── README.md # Project documentation
To compile with optimizations:
gcc -O2 calc.c -o calcFor debugging:
gcc -g -Wall calc.c -o calcContributions are welcome! If you'd like to improve the calculator or add new features:
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature/new-feature) - Open a Pull Request
This project is open source and available under the MIT License.
achille010
- GitHub: @achille010
Built as a learning project to explore C programming fundamentals and create a practical command-line tool.
Made with </> using C