Skip to content

Vaibhav-coder-king/simple-calculator_CUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Simple-Calculator(CUI)

🧮 The Simple Calculator

A simple interactive CLI calculator made with Python. It supports basic and some advanced mathematical operations and displays fancy ASCII art using pyfiglet.

🎯 Features

This calculator supports the following operations:

➕ Addition (Add multiple numbers)

➖ Subtraction (Two numbers)

✖️ Multiplication (Multiply multiple numbers)

➗ Division (Integer or Decimal division)

⚡ Power (Exponentiation)

🔁 Remainder (Modulo operation)

🔢 Even or Odd Checker

🔍 Prime Number Checker

🧠 Factorial Calculator

🚪 Exit the program gracefully

📷 Sample Output

image image image

🔧 Requirements

Python 3.x

pyfiglet

🧠 How It Works

Menu-based loop for user interaction

Input handling and error catching using try-except

Mathematical logic implemented using Python's built-in operators and functions

Fancy banner printed using pyfiglet

🛡️ Error Handling

Handles invalid inputs using try-except

Validates number inputs

Displays custom error messages for invalid choices

📜 License

This project is licensed under the MIT License. Feel free to use and modify it.

🙋‍♂️ Author

Made by Vaibhav-coder-king.

About

A simple Python-based command-line calculator with multiple math operations and ASCII banner using pyfiglet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages