We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4331096 + 8ebf303 commit 2af3e36Copy full SHA for 2af3e36
Maths/maths_check.py
@@ -0,0 +1,11 @@
1
+# x% * y == y% * x
2
+# x/100 * y == y/100 * x
3
+
4
+for x in range(1, 100):
5
+ for y in range(1, 100):
6
+ lewa = round(x/100 * y, 2)
7
+ prawa = round(y/100 * x, 2)
8
+ if not lewa == prawa:
9
+ print(f"{x}% * {y} ({lewa}) <> {y}% * {x} ({prawa})")
10
+ # else:
11
+ # print(f"{x}% * {y} ({lewa}) = {y}% * {x} ({prawa})")
0 commit comments