I have the following question: In a store I want to pay with exactly 50 coins. There are 2€, 1€, 0,5€ 0,2€ and 0,1€ coins. So I'd have 2a + 1b + 0,5c + 0,2d + 0,1*e = amount I have to pay And a+b+c+d+e=50 (number of coins) Since there are no half Euros, a,b,c,d, and e are natural numbers (0-50)
Is there any way to solve this? Thanks in advance