school/mathematik/grundrechenarten_2.py

11 lines
265 B
Python

a = 20;
b = 5;
c = 3;
print(f"a: {a} \nb: {b} \nc: {c}\n");
print(f"Addition: {a + b + c}");
print(f"Subtraktion: {b + c - a}");
print(f"Multiplikation: {a * b * c}");
print(f"Division: {a / (b + c)}");
print(f"Modulo: {a % c}");
print(f"Potenzierung: {a ** c}");