everything we were supposed to do at school redid at home and uploaded to git
This commit is contained in:
parent
78bbec925b
commit
6b90ee49d0
9 changed files with 77 additions and 0 deletions
11
mathematik/grundrechenarten_2.py
Normal file
11
mathematik/grundrechenarten_2.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
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}");
|
9
mathematik/kombination_aller_grundrechenarten.py
Normal file
9
mathematik/kombination_aller_grundrechenarten.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
a = 20;
|
||||
b = 4;
|
||||
|
||||
print(f"Addition: {a + b}");
|
||||
print(f"Subtraktion: {a - b}");
|
||||
print(f"Multiplikation: {a * b}");
|
||||
print(f"Division: {a / b}");
|
||||
print(f"Modulo: {a % b}");
|
||||
print(f"Potenzierung: {a ** b}");
|
Loading…
Add table
Add a link
Reference in a new issue