Skip to content

vanshbankar/Calculator-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Python Calculator

A simple command-line calculator built with Python. It performs basic arithmetic operations and allows users to perform multiple calculations in a single session.

โœจ Features

  • โž• Addition
  • โž– Subtraction
  • โœ–๏ธ Multiplication
  • โž— Division
  • ๐Ÿ“‰ Floor Division
  • ๐Ÿ“Š Modulus
  • ๐Ÿ”ข Exponentiation
  • ๐Ÿ”„ Multiple calculations in one run
  • ๐Ÿšซ Prevents division by zero

๐Ÿ› ๏ธ Technologies Used

  • Python 3

๐Ÿš€ How to Run

  1. Clone this repository:

    git clone https://github.com/vanshbankar/python-calculator.git
  2. Open the project folder:

    cd python-calculator
  3. Run the program:

    python main.py

๐Ÿ“‚ Project Structure

python-calculator/
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ README.md

๐Ÿ“ธ Sample Output

Enter Your First Number: 15
Enter Your Second Number: 3

Available operators: +  -  *  /  //  %  **

Enter Your Operator: *

15.0*3.0=45.0

Do you want to continue? (y/n): n

Thank you for using the calculator!
Calculator closed.

๐Ÿ“„ License

This project is licensed under the MIT License.


Made with โค๏ธ by Vansh Bankar

About

A Python-based command-line calculator with support for basic arithmetic operations and input validation for division by zero.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages