Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.34 KB

File metadata and controls

34 lines (26 loc) · 1.34 KB

Simple Calculator

A basic calculator built using HTML, CSS, and JavaScript. The calculator performs basic arithmetic operations such as addition, subtraction, multiplication, division, and clear functionality.

Features

  • 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

Technologies Used

  • 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.

How to Use

  1. Open the index.html file in any modern web browser.
  2. Enter numbers using the buttons.
  3. Click the arithmetic operation buttons (+, -, *, /).
  4. Click = to get the result.
  5. Press C to clear the display.

Responsive Design

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.

Installation

  1. Clone the repository to your local machine:
    git clone https://github.com/Udara-Dilshan/Simple_Calculator)