This project implements a simple command-line calculator that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It includes input validation to ensure users enter valid numbers and operations.
- Performs four basic arithmetic operations: addition, subtraction, multiplication, and division.
- Handles invalid number inputs gracefully.
- Allows users to chain operations using the result of the previous calculation.
- User-friendly console interface for input and output.
- Run the script.
- Enter the first number when prompted.
- Choose an operation from the available options:
+
,-
,*
, or/
. - Enter the next number for the operation.
- View the result of the operation.
- Decide if you want to perform another operation using the result or exit the program.