9 lines
173 B
Python
9 lines
173 B
Python
|
# input
|
||
|
num1 = float(input("Start: "))
|
||
|
num2 = float(input("End: "))
|
||
|
|
||
|
# printing the sum in float
|
||
|
gr = ((num2-num1)/num1)
|
||
|
percentage = "{:.2%}".format(gr)
|
||
|
print(percentage)
|