You can get the input from a text file, the text file
The text file will have the following format:
3 <---------------------- Number of test Cases
7 <---------------------- Number of coins for Case 1
8 6 4 6 7 3 10 <---- Value of each coin
3 <---------------------- Number of coins for Case 2
8 1 10 <--------------- Value of each coin
7 <---------------------- Number of coins for Case 3
1 7 3 7 2 9 8 <------ Value of each coin
Then your output will be show in the console, the output will have the following format:
38 <--- Total amount of positive values that can be achieved by adding the values of the coins in Case 1
7 <--- Same as above, for Case 2
37 <--- Same as above, for Case 3
