Skip to content

Lusine-Sargs-yan/Basic-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Basic Calculator

Manually implement the following functions to provide the calculator with basic functionality:

  • add
  • subtract
  • multiply
  • divide
  • getResult
  • clear note: make the provided API to be encapsulated. Basic usage:

calculator.add(5); calculator.add(7); calculator.getResult(); // 12

Implement each function the way so each one can take endless arguments or simply an array example calculator.add(5); calculator.getResult(); // 5

calculator.add(5, 6, 2); calculator.getResult(); // 13

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published