Java
3. [P3_DoubleDiceRoller] Write a program that enables a user to enter in a desired sum for two dice, and then simulates the rolling of two dice until the sum is rolled. After each pair of rolls the program should output what the rolls were and the sum. For example:
|
Enter the sum of the dice to stop at: 8 Rolled a 6 and a 3, sum is 9 Rolled a 6 and a 1, sum is 7 Rolled a 5 and a 2, sum is 7 Rolled a 2 and a 4, sum is 6 Rolled a 3 and a 5, sum is 8
|
Where I can do them in Eclipse: