• Auction
MapleStory guides, forums, screens, videos, auctions and new friends await! Signup or login
Jun 20 13
Yellonde Luminous 4
LuxManus
How come this is giving me no output:
http://pastebin.com/bHDtZ9za
Replies
Jun 20 13*
Bellocan Hero
metaghost
What if....
acount == bcount

I read the entire code and the number of a's equals the number of b's

I re-read it it should be like the code underneath me, don't forget to add an else statement in case there are two of the same amount.
New MapleStory Screen: New novan job hint? New MapleStory Video: British nanny
Jun 20 13*
Broa Bishop
TheLastWand
if (acount > bcount && bcount > ccount)
highest = "acount";
else if (bcount > acount && acount > ccount)
highest = "bcount";
else if (ccount > acount && acount > bcount)
highest = "ccount";

these lines of code are wrong.
Change it to
if (acount > bcount && acount > ccount)
highest = "acount";
else if (bcount > acount && bcount > ccount)
highest = "bcount";
else if (ccount > acount && ccount > bcount)
highest = "ccount";

And write something that checks for equals
Jun 20 13*
Mardia Dragon Knight
puzzless
You don't account for one count equaling another count

dumb ghost boy ninja
Jun 20 13
Windia Shadower
Pepditz
acount = 2
bcount = 2
ccount = 3

None of your if statements evaluate to true when two of the counts are equal.
New MapleStory Screen: Dojo completed 150 times.
Jun 20 13
Yellonde Luminous 4
LuxManus
574657:
Thank you, you're right.

Register / login
You must be a member to reply or post. signup or login
MapleStory
MapleStory 2
Mobile Games
Art, Anime & Manga
L.o.L., Minecraft, Pokemon, +
Nexon
Sony PS3 & PS4
Xbox 360 & One