This suppose to be a simple coin toss program that tells when the coin is fliped it reads heads or tails and this is wat i got so far
#include <stdio.h>
int example (int h,int t );
int main()
{
int x1, x2;
int x;
printf(" Enter 5 to run the program or 6 to exit " );
scanf("%d%d", x1, x2 );
if ( x == 5);
Example (x1);
if (x1 == 0);
printf(" heads\n");
else
if (x2==0);
printf("tails\n");
return 0;
}
int example (int x);
{
x= rand() % 1
return(x);
}