Ad
  • Custom User Avatar

    No problem.

  • Custom User Avatar

    Well like I was saying before, the result of the operations gives a negative so you must return "No solutions". You have done the code correctly however you need to modify the result of the calculation to check if the chickens or the cows is below 0. I would suggest moving your if loop down and adding on this detail there.

  • Custom User Avatar

    Well the amount of heads is a negative so it should return "No solutions" because you can't have negative animals. If not just copy/paste your code here and I'll check for you :).