A python calculator project to be cloned by CS 193 students
Clone this repository.
Allow execution of the calc.py
file: $ chmod a+x ./calc.py
Execute calc.py
:
$ ./calc.py
or
$ python calc.py
Follow the instructions. Input the first number, then the operator symbol, then the second number. The result is displayed. (See Supported Operations)
operator | function |
---|---|
+ | addition |
- | subtraction |
* | multiplication |
/ | division |
See License.