/* headtail.c in module locker
/* A Simulation: The Game of Heads or Tails */
#include <stdio.h>
#include <stdlib.h> /* int rand(void) prototype */
main()
{ int n;
void prn_instructions(void), play(int);
prn_instructions();
printf("How many times do you want to play? ");
scanf("%d", &n);
play(n); }
Previous slide
Next slide
Back to first slide
View graphic version