Closed sumitdahiya619 closed 2 years ago
Or should i instead of accepting the input from the user take an example and print its output?
Or should i instead of accepting the input from the user take an example and print its output?
ok provide predefined test cases and and then upload it
Changed as requested.
It can be run using vs code and gives the correct output. First it accepts n which is the number of coins, then the value of the coins and last the sum which is to be made using the coins. The output will give the minimum number of coins used to make that sum.