所以,如果LARGE
不等於Count
,然後LARGE
應該遞增,直到Count
和LARGE
具有相同的值。事情發生之後,我的教授想再次輸入一個新的整數,然後它會再次循環,但我不知道如何讓我的代碼回到while
。的Java如何跳回While循環
if (LARGE == Count)
{
System.out.println ("Large is Equal to Count");
}
while (Count != LARGE)
{
LARGE++;
System.out.println ("Large is " +LARGE);
}
if (LARGE == Count)
{
System.out.println ("Input a new integer to compare")
LARGE = input.newInt();
}
Thankyousomuch我只是第一年學生服用CS但是現在的問題是,當大不等於要計算它將無限循環無論如何在代碼中你寫的其他做的是一樣的,否則如果? –
如果有幫助,請您接受答案。 – PVR
即時新在這裏嗯在哪裏是接受按鈕我很抱歉哈哈 –