My code is always giving "yes"

@rick711c your are counting empty subset as a answer ans empty subset always have a sum of zero so your programe always shows yes as the answer you can count the no of items used and then if they are greater than 0 and then check the condition of sum equal to zero that would sove your issue

@rick711c Coding Blocks IDE i have modified your code a lilttle bit for that check conditi
on see this if any query let me know and if solved please mark it resolved from your side
and please mark my experience

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.