Question: how can i code this condition: thrwo 2 dices at a same time, - if the second num is greater than the first num, then

how can i code this condition:
thrwo 2 dices at a same time,
- if the second num is greater than the first num, then gain 4
- if the second num is smaller than first num, then lose 4
-if the second num is equal to the first num, the 0
and use for loop, play 100times.Then what's gonna be the total pay off?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!