Skip to content

This is a simple Python calculator program that performs arithmetic operations such as addition, subtraction, multiplication, division, exponentiation, and finding the remainder. It also provides options to terminate the program or reset it.

Notifications You must be signed in to change notification settings

Avishka777/Simple-Calculator

Repository files navigation

Python Calculator

This is a simple Python calculator program that performs arithmetic operations such as addition, subtraction, multiplication, division, exponentiation, and finding the remainder. It also provides options to terminate the program or reset it.

Arithmetic Operations

The following arithmetic operations are supported by the calculator:

Addition (+) Subtraction (-) Multiplication (*) Division (/) Exponentiation (^) Remainder (%)

To use the calculator, follow these steps:

Run the program. Select an operation by entering the corresponding symbol (+, -, *, /, ^, %). Enter the required numbers when prompted. The result of the operation will be displayed. You can terminate the program by entering '#' or reset it by entering '$'.

Example Usage

Select operation. 1.Add : + 2.Subtract : - 3.Multiply : * 4.Divide : / 5.Power : ^ 6.Remainder: % 7.Terminate: # 8.Reset : $ Enter choice(+,-,*,/,^,%,#,$): + + Enter first number: 10 10 Enter second number: 5 5 10.0 + 5.0 = 15.0

About

This is a simple Python calculator program that performs arithmetic operations such as addition, subtraction, multiplication, division, exponentiation, and finding the remainder. It also provides options to terminate the program or reset it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages