>>868
while (Q != 0) {
if (Q == 0) {
while (Q == 0) {
hoge;
}
break;
}
}

これでどうよ
ってかwhile ~ doってpascalの構文じゃね?