A simple and responsive calculator application built with React.js. The app features a clean UI and performs basic arithmetic operations such as addition, subtraction, multiplication, and division. It also includes percentage calculation and supports both positive and negative numbers.
- Perform basic arithmetic operations (+, -, ×, ÷).
- Calculate percentages (
%). - Toggle between positive and negative numbers (
+/-). - Clear all input (
Cbutton). - Responsive and user-friendly design.
- Developed with React for efficient UI rendering.
To run this project locally, follow these steps:
-
Clone this repository:
git clone https://github.com/AhmedAbdoDev/Calculator.git
-
Navigate to the project directory:
cd calculator -
Install the required dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 in your browser to view the app.
- Enter numbers using the on-screen buttons or your keyboard.
- Click the desired operation (
+,-,×,÷,%,+/-). - Press
=to see the result. - Use the
Cbutton to clear all inputs and start a new calculation.
- React.js: Frontend framework for building dynamic and interactive UI.
- CSS: Styling for the application, ensuring responsiveness and a clean design.
- Add keyboard support for input.
- Add support for more complex mathematical functions (e.g., square root, power).
- Implement a history feature to track past calculations.
Feel free to fork this repository, create a feature branch, and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.