A lightweight and user-friendly calculator built in C for quick and easy arithmetic operations. Designed with simplicity in mind, it runs directly in the command-line interface (CLI), making it perfect for learning, everyday use, or as a foundation for more advanced projects.
- Basic arithmetic operations: addition, subtraction, multiplication, division, power, and square root
- Simple CLI interface
- Lightweight and fast
- Beginner-friendly source code
- Cross-platform (works on Linux, macOS, and Windows with a C compiler)
- Easy to use
git clone https://github.com/IldhanSec/simple-calculator-c.git
cd simple-calculatorUsing GCC (Linux/macOS/Windows with MinGW):
gcc calcu.c -o calcu -lm
-lmis required to link the math library.
./calcuIf you don't have a compiler like GCC, it is recommended to install it,
otherwise the program will not run because it requires a compiler,
if you are using Windows it is recommended to install minGw because it is one of the C language compilers.
- Launch the program from your terminal.
- Select an operation from the menu.
- Enter the numbers when prompted.
- Instantly get the result.
Example CLI interface:
π© Simple Calculator π©
==========================
Select operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Power
6. Square Root
0. Exit
Enter your choice:
Contributions are welcome! Feel free to open an issue or submit a pull request to improve features, add more operations, or enhance the CLI design.
This project is licensed under the MIT License. See the LICENSE file for details.
β‘ Lightweight. Easy. Fast. Run calculations directly in your terminal.