A simple yet powerful command-line calculator application written in C that performs various mathematical operations.
-
Basic Operations
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Modulus (%)
-
Advanced Operations
- Power (x^y)
- Logarithm (base 10)
- Square Root
-
User-Friendly Interface
- Interactive menu system
- Clear operation displays with formatted output
- Error handling for division/modulus by zero
- Input validation for logarithm and square root
- GCC compiler or any C compiler
- Math library support
- Clone the repository:
git clone https://github.com/yourusername/smart-calculator.git
cd smart-calculator- Compile the program:
gcc -o calculator calculator.c -lm- Run the compiled program:
./calculator-
Choose an operation by entering the corresponding number (0-9)
-
Enter the required number(s) when prompted
-
View the result with formatted output
-
Press 0 to exit the program
====================================
WELCOME TO SMART CALCI
====================================
Choose an operation:
1. Addition (+)
2. Subtraction (-)
3. Multiplication (*)
4. Division (/)
5. Modulus (%)
6. Power (x^y)
8. Log(x)
9. Square root
0. Exit
Enter your choice(0 - 9): 1
Enter the first number: 25
Enter the second number: 15
โโโโโโโโ ADDITION โโโโโโโโ
25 + 15 = 40
โโโโโโโโโโโโโโโโโโโโโโโโโ
This project was developed using Git workflows including:
- Branching for feature development
- Merging changes from different branches
- Pull requests for code review
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Your Name - @yourusername
- Built with C programming language
- Uses standard math library functions
- Developed using Git version control with merge and pull workflows
โญ If you found this project helpful, please consider giving it a star!