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:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: