基本上,我想,在我的反响达到13岁时,如果说的话,在底下再说一次。 我如何这样做? 我的法典如下。
int counter = 2;
int start = 19;
int end = 95;
while(!(input>=start && input<=end) /*range*/ && counter<100){
start+=95;
end+=95;
if(counter % 4 == 0)
end+=19;
else if(counter % 5 == 0)
start+=19;
counter++;
}
EDIT: Sorry for being unclear. Uhh, what I want to do is, if the if-else statements have already been executed 13 times, I want the whole thing, including the
start+=95;
end+=95;
页: 1