UNPKG

sum-difference-multiplication-division

Version:

Here you can add ,substract,multiply and divide two numbers by writing add(a,b) ,sub(a,b),mult(a,b),div(a,b) and it will return the calculated value

31 lines (27 loc) 963 B
# sum-difference-multiplication-division Here you can add ,substract,multiply and divide two numbers by writing add(a,b) ,sub(a,b),mult(a,b),div(a,b) ,i know its a easy task but this is my package which is available on npm you can use or download it by writing <br/> # npm i sum-difference-multiplication-division ## add(a,b) Params <br/> Number a: The first number,<br/> Number b: The second number.<br/> Return(a+b)<br/> Number The sum of the two numbers.<br/> ## sub(a,b) Params<br/> Number a: The first number,<br/> Number b: The second number.<br/> Return(a-b)<br/> Number The differnce of the two numbers.<br/> ## mult(a,b) Params<br/> Number a: The first number,<br/> Number b: The second number.<br/> Return(a*b)<br/> Number The multiplication of the two numbers.<br/> ## div(a,b) Params<br/> Number a: The first number,<br/> Number b: The second number.<br/> Return(b/a)<br/> Number The division of the two numbers.<br/>