This is a basic calculator program written in Dart. It takes user input for two numbers and an operator, then performs the corresponding operation.
- Addition
- Subtraction
- Multiplication
- Division
- Modulus
-
Clone the repository:
git clone https://github.com/your-username/dart-calculator.git
-
Navigate to the project directory:
cd dart-calculator
-
Run the Dart program:
dart calculator.dart
-
Follow the prompts to enter the first number, second number, and the desired operation.
The program supports decimal input for more accurate calculations.
Division by zero and modulus with zero are handled, and appropriate error messages are displayed.
Feel free to contribute to the project by submitting pull requests or reporting issues. Your feedback is valuable!