/*
   flip - Numerator program to demonstrate the use of random numbers
          and calling Numerator subroutines.

*/

new
"Flip how many coins? "
heads = 0
tails = 0
get flip
orgflip = flip
flip = flip + 1
if (flip)
   call "flipem"
endif

"I flipped "; orgflip: ; " coins\n"
"There were "; heads: ; " heads and "; tails: ; " tails\n"

