#include<stdio.h>
#include<stdlib.h>
#include<time.h>

int b_rand()
{
 return (rand()%2);
}

void main()
{
 int random,integer,result;
 char answer;
 srand((unsigned)time(NULL) );
 
 while(1)
 {
 result = b_rand();
 printf("앞면 또는 뒷면(1 또는 0):");
   scanf("%d", &integer);

 if (integer == random)
   printf("맞았습니다");
 else
   printf("틀렸습니다");

 printf("계속 하시겠습니까? (y 또는 n) : ");
 scanf("%c", &answer);

 if (answer == 'y')
  continue;
 else if (answer=='n')
  break;

 }
 
}

 

동전던지기 하는건데 아예 오류가 뜨네요 ㅠㅠㅠ