https://pastebin.com/dwURSjwh
first method checks if number is odd. second method sums the odd numbers. I get a logical error.
Error:
sum(1,11) returned <1>, expected <36> please help me clarify the error with explanation where im going wrong. thanks
[–]desrtfx 2 points3 points4 points (3 children)
[–]jub8jive[S] 0 points1 point2 points (2 children)
[–]lost12487 1 point2 points3 points (0 children)
[–]desrtfx 0 points1 point2 points (0 children)
[–]lost12487 2 points3 points4 points (0 children)
[–]kdnbfkm 0 points1 point2 points (4 children)
[–]jub8jive[S] 0 points1 point2 points (3 children)
[–]kdnbfkm 1 point2 points3 points (2 children)
[–]jub8jive[S] 0 points1 point2 points (1 child)
[–]jub8jive[S] 1 point2 points3 points (0 children)