Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 624 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 624 Bytes

Node.js Calculator

An argument based calculator in nodejs. The code takes arguments from terminal and then depending on arguments gives you the output.

How to use

node index.js operation value1 value2

Addition / Substraction / Multiplication / Division

node index.js operation value1 value2

eg. node index.js add 4 2
eg. node index.js sub 4 2
eg. node index.js mult 4 2
eg. node index.js divide 4 2

Sin / Cos / Tan

node index.js operation value1

eg. node index.js sin 40
eg. node index.js cos 40
eg. node index.js tan 40

Random

node index.js random