This simple calculator project provides a user-friendly interface for basic arithmetic operations, including addition, subtraction, multiplication, division, and percentage calculations. Users can also clear the display, remove the last entered character, and calculate results with ease.
-
Addition (+):
- Click the "+" button to add numbers.
-
Subtraction (-):
- Click the "-" button to subtract numbers.
-
Multiplication (*):
- Click the "*" button to multiply numbers.
-
Division (/):
- Click the "/" button to divide numbers.
-
Percentage (%):
- Click the "%" button to calculate percentages.
-
Clear Display (C):
- Click the "C" button to clear the display.
-
Remove Single Character (X):
- Click the "X" button to remove the last entered character.
-
Decimal Point (.):
- Click the "." button to add decimal points to numbers.
-
Calculate (=):
- Click the "=" button to evaluate the expression and display the result.
-
Clone or Download:
-
Clone or download the repository to your local machine:
git clone https://github.com/Ashique01/calculator.git
-
-
Open in Browser:
- Open the
index.html
file in a web browser to launch the calculator.
- Open the
-
Perform Calculations:
- Perform arithmetic operations by clicking the corresponding buttons on the calculator.
- index.html: HTML file containing the structure of the calculator interface.
- style.css: CSS file for styling the calculator layout.
- index.js: JavaScript file for implementing calculator functionality.
Check out the live demo here.
Feel free to contribute to this project by submitting pull requests or opening issues. If you encounter any bugs or have suggestions for improvements, please let us know.