Computer Science, asked by narendrasinghcm, 7 months ago

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 jothika132002
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