Jan-05-2020, 07:55 PM
This is not really a problem with your code. Your code works, it just doesn't seem to satisfy the requirements of the exercise. Without seeing the exercise as written by the professor, I can't really tell you what to do.
I would suggest trying to make the program work with only one loop. Generate the random number and print heads or tails all in the same loop.
I would suggest trying to make the program work with only one loop. Generate the random number and print heads or tails all in the same loop.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures