Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 585 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 585 Bytes

SimpleCalc

An info 449 Assignment

Welcome to use SimpleCalc. This is a command line calculator that helps you do some simple calculation. It supports negative and decimal numbers. It also supports command line arguments.

Usage: calc <numbers... operation>
Or simply calc

Expression should be of the form "1+2" or "7*5"

Number list and operation shouble be of the form "1 2 3 avg" or "9 8 7 count"
Support operations:
avg for average
count for counting elements
fact for factorial (fact only accept one positive integer less than 20)