Skip to content

atefi1999/SimpleCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ Simple Calculator CLI App

A simple Command-Line Interface (CLI) program to perform basic mathematical operations (addition, subtraction, multiplication, division) with the ability to store and display calculation history.


✨ Features

  • βž• Add two numbers
  • βž– Subtract two numbers
  • βœ–οΈ Multiply two numbers
  • βž— Divide two numbers (with division by zero handling)
  • πŸ“œ View calculation history
  • 🧹 Clear calculation history
  • πŸ‘¨β€πŸ’» Simple and user-friendly CLI interface

πŸš€ How to Run

1. Clone the repository or download the files:

git clone https://github.com/atefi1999/SimpleCalculator.git
cd SimpleCalculator

2. Run the program:

python simple_calculator.py

πŸ–₯️ Example Usage

πŸ”’ Simple Calculator CLI
1️⃣ Add
2️⃣ Subtract
3️⃣ Multiply
4️⃣ Divide
5️⃣ Show History
6️⃣ Clear History
7️⃣ Exit
πŸ‘‰ Choose an option: 1
Enter first number: 12
Enter second number: 8
βœ… Result: 20.0

πŸŽ₯ Demo

screenshot

πŸ› οΈ Technologies

  • Python 3.x
  • Object-Oriented Programming (OOP)

πŸ“‚ Project Structure

SimpleCalculator/
β”‚
β”œβ”€β”€ simple_calculator.py # Main program code
└── README.md # Project documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages