📜  rekenmachine (1)

📅  最后修改于: 2023-12-03 14:47:03.559000             🧑  作者: Mango

rekenmachine

rekenmachine is a simple calculator program written in Python that can perform basic arithmetic operations like addition, subtraction, multiplication, and division.

Installation

rekenmachine requires Python 3.x to run. To install, simply download the rekenmachine.py file from GitHub and save it to your desired directory.

Usage

After downloading the rekenmachine.py file, you can run it in your command-line interface by navigating to the directory where the file is located and typing the following command:

python rekenmachine.py

This will launch the calculator program in your command-line interface.

Features

rekenmachine currently includes the following features:

  1. Addition: You can add two numbers by entering them separated by a plus sign (+).
10 + 5

This will output 15.

  1. Subtraction: You can subtract two numbers by entering them separated by a minus sign (-).
10 - 5

This will output 5.

  1. Multiplication: You can multiply two numbers by entering them separated by an asterisk (*).
10 * 5

This will output 50.

  1. Division: You can divide two numbers by entering them separated by a forward slash (/).
10 / 5

This will output 2.0.

Example

Here's an example of how you can use rekenmachine to perform a series of calculations:

python rekenmachine.py
> 10 + 5
15
> 20 - 10
10
> 5 * 4
20
> 10 / 2
5.0
> exit
Conclusion

rekenmachine is a simple calculator program that can perform basic arithmetic operations. It's easy to use and can save time when you need to do quick calculations.