Skip to content

yegost/simple-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

A simple calculator created using HTML, CSS, and JavaScript. It handles basic arithmetic operations, includes percentage calculations, supports keyboard input, features interactive buttons, and keeps a history of calculations.

Features

  • HTML Structure: Fully implemented buttons, display, and layout.
  • CSS Styling: Clean, responsive design.
  • JavaScript Functionality:
    • Keyboard input support
    • Addition, subtraction, multiplication, division
    • Percentage (%) calculations
    • Decimal points
    • Backspace button (removes last character/operator)
    • Clear All (C) button
    • Equals (=) button
    • Calculation History: Stores previous calculations for quick reference

Usage

  1. Click numbers and operators to perform calculations.
  2. Press Backspace to delete the last input.
  3. Press C (Clear All) to reset the display.
  4. Press = to calculate the result.
  5. Use the % button to calculate percentages.
  6. Decimal points work as expected.
  7. Keyboard input is supported.
  8. Previous calculations appear in the history panel, and can be reused by clicking them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors