Seed (); \ \ 임의 시드
For (temp = rand (); 온도 %7! = 0; Temp = rand()););
For (temp1= rand (); Temp 1%7! = 0; Temp1= rand ());
Sum = temp+temp1;
If (sum = = 7 | | sum = =11) goto victory;
Elseif (sum = = 2 | | sum = = 3 | | sum = =12) goto 가 실패했습니다.
기타
{
반복:
For (temp = rand (); 온도 %7! = 0; Temp = rand()););
For (temp1= rand (); Temp 1%7! = 0; Temp1= rand ());
If (sum = = temp+temp1) goto victory;
Elseif (temp+temp1= = 7) goto 가 실패했습니다.
그렇지 않으면 반복으로 이동합니다.
}