Skip to content

DanithuAmaranayaka/Python-Calculater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Simple Calculator Overview This is a simple, command-line based calculator written in Python. The calculator can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It's designed to be a straightforward example of how to implement fundamental mathematical operations in Python.

Features Addition: Adds two numbers. Subtraction: Subtracts the second number from the first. Multiplication: Multiplies two numbers. Division: Divides the first number by the second, providing the result as a floating-point number. Usage To use the calculator, clone the repository and run the script. You will be prompted to enter two numbers and select an operation.

Example bash Copy code

Clone the repository

git clone https://github.com/danithu123/Python-Calculater.git

Navigate to the directory

cd simple-calculator

Run the calculator script

python calculator.py Sample Interaction markdown Copy code Enter first number: 10 Enter second number: 5 Select operation:

  1. Addition
  2. Subtraction
  3. Multiplication
  4. Division Enter choice (1/2/3/4): 1 Result: 15 Installation Ensure you have Python installed on your machine. This project is compatible with Python 3.x.

Contributing Contributions are welcome! Please fork this repository and submit a pull request with your improvements.

License This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages