- This program simulates a game in which you roll a die 4 times, and you win if a six turns up. You specify the "No. of games" and the program prints out the percentage of games that you win.


The source.