human
Program to find the count of coins of each type from the given ratio | function to calculate coin ..
Converting each of them in rupees . As we are given totalRupees = 1800.
Driver code"
Solution in Python:
assistant
#Here is code to program to find the count of coins of each type from the given ratio and the other steps required.
 def coin ( totalRupees , X , Y , Z ) :
	one = X * 1
	fifty = ( ( Y * 1 ) / 2.0 )
	twentyfive = ( ( Z * 1 ) / 4.0 )
	total = one + fifty + twentyfive
	result = ( ( totalRupees ) / total )
	return int ( result )
if __name__ == ' _ _ main _ _ ' :
	totalRupees = 1800
	X , Y , Z = 1 , 2 , 4
	Rupees = coin ( totalRupees , X , Y , Z )
	print ( "1 ▁ rupess ▁ coins ▁ = ▁ " , Rupees * 1 )
	print ( "50 ▁ paisa ▁ coins ▁ = ▁ " , Rupees * 2 )
	print ( "25 ▁ paisa ▁ coins ▁ = ▁ " , Rupees * 4 )