我需要應用將跳過打印前10個值的continue語句。應用將跳過打印程序涉及變量的前10個數值的continue語句
我已經有我的代碼
public class numbers {
public static void main(String[] args) {
for (int number=1; number <= 99; number++){
if (number % 2 == 0)
System.out.print(number + " ");
System.out.println();
}
}
}
那麼做的,而不是傾銷的東西,也可能只是你有作爲首發爲您的家庭作業模板的「如果」和「繼續」一些研究。提示:你*積極嘗試學習*編程。 – GhostCat