A basic calculator built using HTML, CSS, and JavaScript. The calculator performs basic arithmetic operations such as addition, subtraction, multiplication, division, and clear functionality.
- Simple and intuitive user interface
- Perform addition, subtraction, multiplication, division
- Clear button (C) to reset the display
- Responsive design that adapts to different screen sizes
- HTML: Used to create the structure of the page.
- CSS: Used for styling the calculator layout and elements.
- JavaScript: Used to handle button click events and perform calculations.
- Open the
index.htmlfile in any modern web browser. - Enter numbers using the buttons.
- Click the arithmetic operation buttons (
+,-,*,/). - Click
=to get the result. - Press
Cto clear the display.
The design is responsive and adapts to screen sizes:
- On screens wider than 768px, the layout shows the calculator with larger buttons.
- On screens smaller than 768px (like tablets), the font size and button size adjust accordingly.
- On screens smaller than 480px (mobile devices), the layout adapts for a more compact view.
- Clone the repository to your local machine:
git clone https://github.com/Udara-Dilshan/Simple_Calculator)