Skip to content

Simple arithmetic calculater for command-line.

Notifications You must be signed in to change notification settings

IzumiSy/mathcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mathcalc

Simple arithmetic calculater for command-line.

$ ./mathcalc "1+2+(10*2+(5*2))+10"
> 1+2+(10*2+(5*2))+10
------
(5*2)
= (10)
1+2+(10*2+10)+10
------
(10*2+10)
= (20+10)
= (30)
1+2+30+10
------
(1+2+30+10)
= (3+30+10)
= (3+40)
= (43)
43

Build

$ make

Run

$ ./mathcalc
usage: mathcalc [expression]

Clean-up

$ make clean

About

Simple arithmetic calculater for command-line.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published