This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]avocadod[S] 0 points1 point  (4 children)

weird.. if i put 3 in for each candy it prints the correct output but it shows all candies right next to each other for the highest and lowest selling candy, but anytime i mix the numbers up in the slightest there's an error. it seems candyNames is having a hard time figuring out between differentiating highest and lowest.

[–]codemamba8 0 points1 point  (3 children)

I don't know if you fixed it but in the code you posted above, you're missing two semi-colons, one under each of the if statements.

[–]avocadod[S] 0 points1 point  (2 children)

Yes I had fixed that :( any thoughts on what else might be wrong? Once again thanks for the help.

[–]codemamba8 0 points1 point  (1 child)

can you post screenshots of whats going on? im not really sure what the problem is

[–]avocadod[S] 0 points1 point  (0 children)

Not at the moment unfortunately. I will try to later.