Skip to content

A simple, menu-driven calculator in Python that performs addition ➕, subtraction ➖, multiplication ×, and division ÷. Features a clean interactive interface with input validation and loops for continuous use. Perfect for beginners learning functions, conditionals, and user input.

License

Notifications You must be signed in to change notification settings

junaidfarhan/-EasyCalculator-simple-and-clear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

➕➖×÷ EasyCalculator 🧮

A simple, menu-driven Python calculator that performs addition ➕, subtraction ➖, multiplication ×, and division ÷.
Features a clean interactive interface, input validation, and continuous use loop. Perfect for beginners learning functions, conditionals, loops, and user input.


🌟 Features

  • Menu-based calculator with 4 basic operations:

    • Addition ➕
    • Subtraction ➖
    • Multiplication ×
    • Division ÷
  • Continuous usage – the calculator runs until the user chooses to exit.

  • Input validation – handles invalid numbers and menu choices gracefully.

  • Uses Python functions for each operation for modularity and readability.

  • Friendly output formatting with separators for easy reading.


🛠️ Concepts Used

  • Python Functions – modular code for each operation
  • Conditionals (if / elif / else) – choose operations
  • Loops (while True) – repeat until exit
  • Input/Output – user interaction
  • Error Handling (try/except) – prevent crashes on invalid input

▶️ How to Use

  1. Make sure Python is installed
  2. Clone the repository:
    git clone https://github.com/junaidfarhan/-EasyCalculator-simple-and-clear
  3. Navigate to the Folder:
    cd simple_calculator
  4. Run the Script:
    python simple_calculator.py

About

A simple, menu-driven calculator in Python that performs addition ➕, subtraction ➖, multiplication ×, and division ÷. Features a clean interactive interface with input validation and loops for continuous use. Perfect for beginners learning functions, conditionals, and user input.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages