Cal is a ruby calculator with easy to use with help in repeated operation eg: +-*/
- ruby cal.rb [20+5-2]
- ruby cal.rb -h or --h for help
Not like other calculator Cal will display default operator: + or others of previous use for easy operate without key in each input
- 20 + 50
- Then you want to continue + 70
- just enter 70
- Ruby 2.0 or later
- However if any problem please try
- Ruby 2.6
Prateep Kul: