Sep-18-2018, 01:01 AM
Well, the problem is not clear at all. You've got a, b, and c, with the minimum being k, that's clear. Summing from 1 to k is easy, you just need the sum and range built-ins. But then where do x and y come from? You haven't defined them anywhere. And what if x is 1 and y is 1. Then all of the conditions you listed are true. Is the code supposed to do five things, or just one?
It would be good to clarify those points. Then it would be good to try to write some code to solve the problem yourself. We're not big on writing code for people here. We are big on helping people fix code they've written. Especially if they tell us exactly what is going wrong.
It would be good to clarify those points. Then it would be good to try to write some code to solve the problem yourself. We're not big on writing code for people here. We are big on helping people fix code they've written. Especially if they tell us exactly what is going wrong.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures