Why is it giving me 0

Im debugging this project which is supposed to tell the user how many cups of coffee you need to sell to reach your desired profit goal.

When I run the function it just gives me 0 for the number of cups I need to sell

Would appreciate it alot if you just looked at my code :slight_smile:

HI @kojicephas ,

The function calculateProfit() is not returning any value.

Hope this helps!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.