C programming questions including the use of arrays
Hello! Sorry to make the first post as a question, but I am struggling on the following question:
"Write a program to simulate the rolling of a dice. The sum of the two dice is to be calculated. If the dice is rolled 10,000 times, using arrays record the number of times each possible sum occurs."
for the simulating the rolling of dice and it's sum it is very simple, but how would you go about recording (using arrays) the amount of times the same sum occurs (inside the loop) ? :redface:
Thank you all in advance !