"""WAP to calculate the total amount of money in the piggybank given the coins of Rs. 10, Rs. 5, Rs. 2 and
Re. 1."""
def calculate_total(ten, five, two, one):
total = ten * 10 + five * 5 + two * 2 + one * 1
return total
ten = int(input("Enter the number of Rs. 10 coins: "))
five = int(input("Enter the number of Rs. 5 coins: "))
two = int(input("Enter the number of Rs. 2 coins: "))
one = int(input("Enter the number of Re. 1 coins: "))
total = calculate_total(ten, five, two, one)
print("The total amount in the piggybank is Rs.", total)
To embed this project on your website, copy the following code and paste it into your website's HTML: