We want to run several experiments like those of the problem Dice Pairs (1).
In each experiment, we have been throwing a pair of dice repeatedly, recording the outcome.
Write a program that, for each of the experiments in a series of them, reads the sequence of outcomes of the experiment and prints out the histogram, under the same conditions as in Dice Pairs (1).
Input is a sequence of experiments. Each experiment consists of the outcomes of the corresponding dice throws. The end of the data for each single experiment is indicated by a zero.
Print the successive histograms corresponding to the successive experiments. After each histogram, print a line with five dashes.
Author: José Luis Balcázar
Generation: 2026-01-25T16:37:54.122Z
© Jutge.org, 2006–2026.
https://jutge.org