標題:
java 問題
發問:
此文章來自奇摩知識+如有不便請留言告知
startNum is 12, endNum is 19, and odd is selected. The program calculates 13 + 15 + 17 + 19 and thus the sum is 64. e條我program應該點寫
最佳解答:
int sum=0; for(i=12;i
其他解答:
i 一定要 declare 了才可以用; mod係唔存在係 JAVA 要用 (i % 2); public class Program { public static void main(String[] args) { int sumOf = 0; for (int i = 12; i
文章標籤
全站熱搜