1.2.1 • Published 1 year ago

altampan-calculator v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Simple Calculator

This is a simple calculator created using JavaScript. The calculator can perform basic mathematical operations such as addition, subtraction, multiplication, and division. Additionally, it also includes additional features to calculate the square and square root of a number.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Square Calculation
  • Square Root Calculation

How to Use

  1. Make sure you have Node.js installed on your computer.
  2. Copy the calculator code from calculator.js.
  3. Run the code using the command node calculator.js.
  4. Follow the on-screen instructions to input numbers and desired mathematical operations.

Example Usage

Addition

Enter the first number: 10
Enter the second number: 5
Choose operation (+, -, *, /, ^, sqrt): +
Result: 15

Multiplication

Enter the first number: 7
Enter the second number: 8
Choose operation (+, -, *, /, ^, sqrt): *
Result: 56

Square Root Calculation

Enter the number: 25
Choose operation (+, -, *, /, ^, sqrt): sqrt
Result: 5

Notes

  • Make sure to input valid numbers and supported operations.
  • The calculator will not be able to process invalid mathematical operations, such as division by zero or taking the square root of a negative number.
1.2.1

1 year ago

1.2.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago