This is a simple calculator application built using JavaScript, HTML, and CSS. The calculator allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It has a clean and interactive user interface, making it easy for users to calculate numbers.
- Addition: Adds two numbers.
- Subtraction: Subtracts one number from another.
- Multiplication: Multiplies two numbers.
- Division: Divides one number by another (handles division by zero).
- Clear: Clears the current input.
- Decimal Support: Allows input of decimal numbers.
- HTML: Structure of the web page.
- CSS: Styling and layout of the calculator.
- JavaScript: Logic for performing calculations and handling user inputs.
- Clone the repository: git clone https://github.com/hencci/Calculator-2.git
- Navigate to the project directory: cd Calculator-2
- Open the index.html file in a web browser.
- Open the application in your browser.
- Click buttons to input numbers and operations
- Press 'Equals' (=) to see the result.
- Click 'Clear' bottons to clear input, or reset the calculator.
- Addition: 5 + 3 = 8
- Subtraction: 9 - 4 = 5
- Multiplication: 7 * 6 = 42
- Division: 8 / 2 = 4
Here’s a screenshot of the calculator in action:
If you would like to contribute to this project, follow the steps below:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Test your changes locally.
- Submit a pull request for review.
Created by Henry Moses Feel free to reach out if you have any questions