#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void flip(int x);
int main(void)
{
int a=0;
int b=0;
srand(time(NULL));
printf("The total number of Heads was: %d\n",a);
printf("The total number of Tails was: %d\n",b);
return 0;
}
void flip(int x)
{
for( x=1;x<=100;x++ )
{
if( filp() == 1 )
{
printf("Heads.\n");
a++;
}
else
{
printf("Tails.\n");
b++;
}
}
return;
}
這個程序不會改了?、
我了個去...