main must return int.
You have a rollADieA rather than a rollADie2.
And: all the statements between the do and the while must be enclosed in a set of curly braces.
Code:{curly braces}
Printable View
main must return int.
You have a rollADieA rather than a rollADie2.
And: all the statements between the do and the while must be enclosed in a set of curly braces.
Code:{curly braces}
i fixed the rollADieA,
the problem was the curly braces.
thanx it works now