hbui
2024-07-22 a816d07ebc66c99cde0da4118422d26046502f1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /usr/bin/env python
# -*-encoding utf-8-*-
 
a = input("Geben Sie eine Zahl ein! ")
b = input("Geben Sie eine weiter Zahl ein! ")
 
 
a = float(a)
b = float(b)
 
plus = a + b
print(f"{a} + {b} = {plus}")
 
minus = a - b
print(f"{a} - {b} = {minus}")
 
mul = a * b
print(f"{a} * {b} = {mul}")
 
div = a / b
print(f"{a} / {b} = {div}")
 
integer_div = a // b
print(f"{a} // {b} = {integer_div}")
 
mod = a % b
print(f"{a} % {b} = {mod}")
 
exp = a ** b
print(f"{a} ** {b} = {exp}")