3C科技 娛樂遊戲 美食旅遊 時尚美妝 親子育兒 生活休閒 金融理財 健康運動 寰宇綜合

Zi 字媒體

2017-07-25T20:27:27+00:00
加入好友
jash.liao的JAVA整理教學:JAVA控制結構-迴圈(while)    線上執行:http://www.tutorialspoint.com/compile_java_online.php / http://www.compilejava.net/ code2html:http://tohtml.com/     publicclass HelloWorld{        publicstaticvoid main(String[]args){         int sum =0;         int i =1;                  while(i <=100){             sum += i++;         }                  System.out.println("1 + 2 + .... + 99 + 100 = "+ sum);      } }        

本文由jashliaoeuwordpress提供 原文連結

寫了 5860316篇文章,獲得 23313次喜歡
精彩推薦