X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Readme.md

Simple Calculator

This Python script is a simple calculator that allows for basic arithmetic operations such as addition, subtraction, multiplication, division, and average calculation. It takes user input to perform the desired operation and displays the result.

Usage

  1. Run the script:

    python calculator.py
  2. Follow the prompts to choose an operation and input the required numbers.

  3. View the result of the selected operation.

Available Operations

  • Addition (1): Sum of multiple numbers.
  • Subtraction (2): Difference between two numbers.
  • Multiplication (3): Product of multiple numbers.
  • Division (4): Quotient of two numbers.
  • Average (5): Average of multiple numbers.

Exiting the Calculator

To exit the calculator, enter -1 when prompted for your choice.

Note

This calculator clears the console after each operation for a better user experience.

X Tutup