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.
1 parent 68473af commit a8a3f67Copy full SHA for a8a3f67
1 file changed
maths/percentage_calculator.py
@@ -0,0 +1,10 @@
1
+def calculate_percentage(value, percent):
2
+ return (value * percent) / 100
3
+
4
5
+value = float(input("Enter value: "))
6
+percent = float(input("Enter percentage: "))
7
8
+result = calculate_percentage(value, percent)
9
10
+print("Result:", result)
0 commit comments