Skip to content

Udara-Dilshan/Simple_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

A basic, responsive calculator built with HTML, CSS. It supports addition, subtraction, multiplication, and division with an intuitive interface and responsive design for use on any device.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors