i can't get what's wrong with my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
20th Nov 2020, 8:58 AM
athena
athena - avatar
3 Answers
+ 1
You don't need the if-else. Just use the statements in the if block and remove the endl. I.E. just always output pie or (fruit / 2) / 3
20th Nov 2020, 9:12 AM
ChaoticDawg
ChaoticDawg - avatar
0
There's nothing wrong actually. What's the problem?
20th Nov 2020, 9:03 AM
mnaeem08
mnaeem08 - avatar
0
mnaeem08 the code coach doesn't accept it as a complete solution even when i added a scenario for odd inputs.
20th Nov 2020, 9:06 AM
athena
athena - avatar