__ ___ ______ ________ __ __
/ |/ /_ __/ ____/___ _/ / ____/_ __/ /___ _/ /_____ _____
/ /|_/ / / / / / / __ `/ / / / / / / / __ `/ __/ __ / ___/
/ / / / /_/ / /___/ /_/ / / /___/ /_/ / / /_/ / /_/ /_/ / /
/_/ /_/__, /____/__,_/_/____/__,_/_/__,_/__/____/_/
/____/ https://msuport.vercel.app
This is a simple CLI-based calculator written in Dart. It allows users to perform basic arithmetic operations interactively through the command line.
- Supports addition (
+), subtraction (-), multiplication (*), and division (/) - Handles invalid inputs and prevents division by zero
- Runs in a loop allowing multiple calculations until the user chooses to exit
- Run the script using Dart:
dart cli_calculator.dart
- Follow the prompts to enter numbers and an operator.
- View the calculated result.
- Choose to continue or exit.
__ ___ ______ ________ __ __
/ |/ /_ __/ ____/___ _/ / ____/_ __/ /___ _/ /_____ _____
/ /|_/ / / / / / / __ `/ / / / / / / / __ `/ __/ __ / ___/
/ / / / /_/ / /___/ /_/ / / /___/ /_/ / / /_/ / /_/ /_/ / /
/_/ /_/__, /____/__,_/_/____/__,_/_/__,_/__/____/_/
/____/ https://msuport.vercel.app
Simple Calculator
Enter first number:
12
Enter an operator (+, -, *, /):
+
Enter second number:
45
Result: 12.0 + 45.0 = 57.0
Do you want to perform another calculation? (yes/no)
yes
Muhammad Sudais Usmani
🌐 msuport.vercel.app