Skip to content

GitRichorDieTrying/calculator-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator CLI

A sleek command-line calculator with Smart Mode, memory recall, and expression history. Built for speed and simplicity.

📦 Installation

Clone the repository and install dependencies (if any):

git clone https://github.com/crypt0chris/calculator-cli.git
cd calculator-cli

🚀 Usage

Run the calculator script:

python3 main.py

Smart Mode is enabled by default. Enter full expressions like 81 / 9, then use memory/history functions as prompted.

Press y when asked to calculate again. Type n or press Ctrl+C to exit.

✨ Features

  • 🧠 Smart Mode: Enter full expressions like 81 / 9
  • 💾 Memory: Save (M+), Recall (MR), Clear (MC)
  • 🕘 History: View past calculations (H)
  • 🛡️ Input validation: Blocks unsafe expressions
  • 🔄 Continuous calculations without relaunching
  • ⚡ Fast and lightweight

📄 License

This project is licensed under the MIT License.

About

Performs basic arithmetic operations (+, −, ×, ÷) based on user input. Built with Python input and conditionals. Demonstrates beginner-level math logic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages