#include<stdio.h>
{
int com, usr;
int win = 0, lose = 0;
while(1)
{
com = rand() & 1;
printf("앞면(0) 뒷면(1) 종료(-1)");
usr = -1;
scanf("%d", &usr);
if(usr == -1) break;
usr &= 1;
if(usr == com) win++;
else lose++;
}
printf("%d전 %d승 %d패\n\n", win + lose, win, lose);
}
void main()
{
prob1();
prob2();
prob3();
prob4();
prob5();
}
왜 안돼죠?ㅜㅜ