diceSum
was declared before the while
loop, and is never reassigned again, so its value is always 7
. In the loop you should add the line: diceSum = dice1 + dice2
EDIT: the diceCount
is because of this
The print
is in the else
condition.
CLICK HERE to find out more related problems solutions.