write a program to find and display the percentage difference, when a number is updated from 80 to 90
Please give the program
Answers
Answered by
2
Explanation:
# Python 3 program to calculate
# the percentage
# Function to calculate the percentage
def percent(a, b) :
result = int(((b - a) * 100) / a)
return result
# Driver code
if __name__ == "__main__" :
a, b = 20, 25
# Function calling
print(percent(a, b), "%")
Similar questions
Math,
3 months ago
Computer Science,
3 months ago
English,
7 months ago
Math,
7 months ago
Science,
11 months ago
Biology,
11 months ago
Social Sciences,
11 months ago