Add GR script

This commit is contained in:
stephan.raabe
2023-02-06 16:11:51 +01:00
parent 51588c133d
commit 819f73fde9
10 changed files with 52 additions and 113 deletions
+8
View File
@@ -0,0 +1,8 @@
# input
num1 = float(input("Start: "))
num2 = float(input("End: "))
# printing the sum in float
gr = ((num2-num1)/num1)
percentage = "{:.2%}".format(gr)
print(percentage)
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
read -p 'Start Value: ' startval
read -p 'End Value: ' endval
let growthrate=(($endval-$startval)/$startval)
echo $growthrate