Computer Science, asked by anilamanalil1289, 2 months ago

if i have 5 rupee notes and 1 rupee notes and i should purchase an amount of 21.. then how many 5 and 1 rupee i should have to have an exact change

Answers

Answered by Anonymous
1

You have to find how much you need to make the given number. If you can't ... You have x no. of 5 rupee coins and y no. of 1 rupee coins. ... If exact change is not possible then display -1.

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

Answered by Abhihaas
2

 \huge \tt {answer}

you need to have 4 five rupee notes and 1 one rupee note to fulfill the need of 21 rupees exactly

Similar questions