# Thread: rolling a two dice

1. ## rolling a two dice

The sum of the two value should then be calculated. Since each die can show an integer value from 1 to 6, then the sum of the two values will vary from 2 to 12 with 7 being the most frequent sum and 2 and 12 the least frequents sums. There are 36 possible combinations of the two dice. Use an array to tally the numbers of times each possible sum appears. Print the result in tabular format. who can programe this, he/she so genius!seriously..

2. Announcements - C Programming
Announcements - General Programming Boards
No, seriously, you need to make an attempt at YOUR homework.

3. Welcome to the forum, amirul m nasir!

This forum, like most programming forums, won't do your assignment for you. They will help you complete yours, if you'll post your code, and explain what the problem is. Show that you've put some work into it. It's very much up to you to start the program.

Say you had 13 cups and wrote a number from 0 to 12 on them. And you had a small sack of beans. Every time you rolled the dice, you could put a bean into the cup that matched the sum of the two die, couldn't you? What would you have then, when you finished rolling the dice?

Welcome to the forum, amirul m nasir!

This forum, like most programming forums, won't do your assignment for you. They will help you complete yours, if you'll post your code, and explain what the problem is. Show that you've put some work into it. It's very much up to you to start the program.

Say you had 13 cups and wrote a number from 0 to 12 on them. And you had a small sack of beans. Every time you rolled the dice, you could put a bean into the cup that matched the sum of the two die, couldn't you? What would you have then, when you finished rolling the dice?
12 cups full of beans... and no dinner.

5. Originally Posted by CommonTater
12 cups full of beans... and no dinner.
No, you'd have 11 bean cups, 2 empty cups, and some of the cups would be overflowing, while others had just a few beans in them... and no dinner.

Quzah.