A simple command-line calculator program written in C.
calculator.c
is a basic calculator that performs addition, subtraction, multiplication, and division operations on two numbers. The program takes user input, processes the operation, and displays the result.
- Addition
- Subtraction
- Multiplication
- Division
-
Clone the repository:
git clone https://github.com/Njoxpy/Calculator
-
Compile the program:
gcc calculator.c -o calculator
- Run The Program
./calculator
- Follow the on-screen instructions to enter two numbers and choose an operation. Example:
Enter the first number: 10
Enter the second number: 5
Choose operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division
Enter the operation number: 1
Result: 15
Contributing
If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/new-feature
- Make your changes and commit them.
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Open a pull request.