help with minor blackjack program

greetings

i've got a problem with my program, when the winner is announced, it says that both players have won, and i can't figure out why.

here's the code: http://codepad.org/nhO6cqZn

it should be something in the while-loop, but i just can't put my finger on it.

any help would be appreciated.
@random132

I believe rand is a keyword, and cannot be used as a variable in your program. rand=rand%13; Try changing the variable rand to something else, like rand_card maybe.
hi, that wasn't the problem, but i managed to figure it out, thanks anyway! =)
Topic archived. No new replies allowed.