Computer Science, asked by vivekkumarraj3297, 1 year ago

You have x no. Of 5 rupee coins and y no. Of 1 rupee coins. You want to purchase an item for amount z. The shopkeeper wants you to provide exact change. You want to pay using minimum number of coins. How many 5 rupee coins and 1 rupee coins will you use? If exact change is not possible then display -1. Sample input expected output available rs. 1 coins available rs. 5 notes amount to be made rs. 1 coins needed rs. 5 notes needed 2 4 21 1 4 11 2 11 1 2 3 3 19 -1

Answers

Answered by Sanu2007
2

Answer:

sooo long question........

Answered by pritujha1405
0

Answer:

Please write an appropriate question

Similar questions