Coding challenge

Write a program to simulate 1000 flips of a 3 coins. Print the number of times that two of the three coins comes up heads. (From Cheney, p. 571.)

Type your code here:


Lua reference

See your results here: