Skip to content

parmanandraj/Minicalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Minicalculator

🧮 Mini Calculator

A lightweight, web-based basic calculator built using HTML, CSS, and JavaScript. This project allows users to perform fundamental arithmetic operations through a simple graphical interface.

🚀 FeaturesArithmetic Operations:

Supports Addition, Subtraction, Multiplication, and Division.Real-time Result: Displays the calculation result immediately on the screen without refreshing the page.Dynamic Styling: Uses CSS for clean input alignment and a green-colored result output.🛠️ Tech StackHTML5: Used for the structural layout and input forms.CSS3: Used for basic positioning and element styling.JavaScript: Handles the mathematical logic and DOM manipulation.

⚙️ How to Use

Clone the repository or download the minicalculator.html file.Open the file in any modern web browser (Chrome, Firefox, Safari, etc.).Enter your numbers into the text fields.Click on the desired operation button (Add, Subtract, Multiply, or Divide) to see the result.

📝 Logic Overview

The calculator uses a single JavaScript function, disp(p), to handle all operations. It captures the values from the input fields using parseFloat to ensure numeric accuracy and updates the innerHTML of the result heading.Note: In the current version, the subtraction logic in your script is set to (a-b)/2. You may want to update line 32 to res = a - b; for standard subtraction.

Developed by :- Parmanand Kumar

About

Mini calculator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages