馬士兵 Java入門到精通學習記錄 (一)

循環語句舉例 輸出1-100內前5個能夠被3整除的數 public class Test1 { public static void main(String[] args) { int i = 1, num = 0; while (i <= 100) { if (i % 3 == 0) { System.ou
相關文章
相關標籤/搜索