Skip to content

Calculator is a Python file that contains a simple calculator program. The program allows the user to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Notifications You must be signed in to change notification settings

EnitanCodeForge/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Calculator

Calculator is a Python file that contains a simple calculator program. The program allows the user to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Upon running the program, the user is prompted to select an operation by entering a corresponding number. They are then asked to input two numbers on which the selected operation will be performed. The program utilizes separate functions for each operation, namely add(), subtract(), multiply(), and divide(), to calculate the result.

After performing the calculation, the program displays the equation along with the result. If the user enters an invalid choice, an error message is displayed.

Overall, "calculator.py" provides a basic calculator functionality that can be used for simple arithmetic calculations.

About

Calculator is a Python file that contains a simple calculator program. The program allows the user to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages