A simple and elegant calculator built with HTML, CSS, and JavaScript. This calculator can perform basic arithmetic operations and includes features for clearing input and deleting the last character.
- Basic arithmetic operations: addition, subtraction, multiplication, division.
- Clear (AC) button to reset the display.
- Delete (DE) button to remove the last character.
- Real-time display of the input and result.
- Error handling for unsupported operations.
You can try the live demo of the calculator here.
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/adityadhiman-in/calculator
- Navigate to the project directory:
cd calculator-pro
- Open
index.html
in your web browser.
- Click on the buttons to input numbers and operations.
- Use the
AC
button to clear the display. - Use the
DE
button to delete the last character. - Click
=
to evaluate the expression and display the result.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repository and create a pull request. You can also simply open an issue with the tag "enhancement".
Feel free to reach out if you have any questions or suggestions!
Made with ❤️ by Aditya Dhiman