Welcome to the Basic Calculator project, a simple web application that allows you to perform basic arithmetic operations on two numbers. This calculator was built using HTML, CSS, and JavaScript and provides a user-friendly interface for performing addition, subtraction, multiplication, and division.
You can check it out on this link: Calculator
- Open the
index.html
file in your preferred web browser. - The calculator interface will display two numbers,
num1
andnum2
, along with buttons for each operation (Add, Subtract, Divide, Multiply). - Click on the appropriate operation button to perform the desired calculation on
num1
andnum2
. - The result of the calculation will be displayed below the buttons, in the
Result
section.
- HTML: Provides the structure of the calculator interface.
- CSS: Styles the calculator for a visually appealing design.
- JavaScript: Implements the arithmetic operations and updates the UI with the calculated results.
- Input fields displaying the numbers
num1
andnum2
. - Buttons for performing addition, subtraction, multiplication, and division operations.
- Real-time calculation and display of the result.
- index.html: The main HTML file that structures the calculator interface and includes the necessary JavaScript file.
- index.css: Cascading Style Sheets file for styling the calculator's layout and appearance.
- index.js: JavaScript file containing the logic for performing arithmetic operations and updating the user interface.
-
Clone this repository to your local machine:
git clone https://github.com/your-username/basic-calculator.git
-
Open the
index.html
file in your web browser. -
Start using the calculator to perform arithmetic operations on the provided numbers.
Feel free to use, modify, and distribute the code as needed. Enjoy using the Basic Calculator!