Skip to content

Simple calculator created for a web engineering lab using html, css and js.

Notifications You must be signed in to change notification settings

Hassaan-Qaisar/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple calculator created for a web engineering lab using html, css and js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published