Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.45 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.45 KB

Simple Calculator

This repository contains a simple calculator implemented using HTML, CSS, and JavaScript. The calculator provides basic arithmetic operations such as addition, subtraction, multiplication, and division, along with additional functionalities such as memory management and calculation of square roots.

Features

  • Arithmetic operations: Addition (+), subtraction (-), multiplication (*), and division (/).
  • Memory management: Store, recall, add to memory, and clear memory functionalities.
  • Additional mathematical operations: Square (x2), reciprocal (1/X), and square root (√).
  • Responsive design: The calculator interface is designed to adapt to different screen sizes.

Usage

To use the calculator, simply open the index.html file in your web browser. You can then perform arithmetic operations by clicking on the corresponding buttons. The current operation and result are displayed in the input field.

Buttons

  • Memory Clear (MC): Clears the memory.
  • Memory Store (MS): Stores the current input value in memory.
  • Memory Recall (MR): Recalls the value from memory and sets it as the current input.
  • Memory Add (M+): Adds the current input value to the memory.
  • Change Sign (±): Toggles the sign of the current input value.
  • Decimal Point (.): Adds a decimal point to the current input value.
  • Clear (C): Clears the current input value.
  • Equals (=): Calculates the result of the current operation.