为什么这个循环只能走两次就退出了
#include<stdio.h>#include<stdlib.h>
#include<string.h>
#include<time.h>
void do24();
void main() {
int a,b,c,d,flg;
char judge;
srand((unsigned)time(NULL));
do {
printf("--------------------->\n");
flg = 1;
a = rand()%13+1;
b = rand()%13+1;
c = rand()%13+1;
d = rand()%13+1;
printf("a:%d b:%d c:%d d:%d\n",a,b,c,d);
printf("Do you want to change the numbers 'Y OR N'\n");
scanf("%c",&judge);
if (judge == 'Y' || judge == 'y') {
flg = 1;
} else {
flg = 0;
}
} while(flg == 1);
do24();
}
void do24(){
return;
}