/* 自定義代碼塊樣式 */

herrDeng網內搜尋

自訂搜尋

Ads

2009年3月24日 星期二

C 的continue & break

C 的continue & break


[影片]介紹C++程式for迴圈中加上continue與break的差異之簡例



Java迴圈中的的continue & break

用 while loop

用 while loop 算

s=3*3+4*4+....88*88

2009年3月10日 星期二

作業4:複利計算

借錢500萬,年利18%,每月複利計算,請問連本帶利的金額
5, 10, 15, 20, 25, 30, 35, 40, 45, 50年的金額。並比較公式:

A*exp(0.18n)

A*(1+0.18/12)^(12*n), n=年數, A=本金

hint: math.h, pow, exp

2009年3月4日 星期三

DSA?

何謂DSA? DSS?
DSS用何種 Hash?

12 Random Number Integers from [1, 120]





<script type="text/javascript">
function rand(){
  var max=120;
  var min=1;
  for(var i=1;i<=12;i++){
    n = Math.floor(Math.random() * (max - min + 1)) + min;
    document.write(n + "<br />");
  }
}
</script>
<form>
<input type=button value="按鈕字串" onclick="rand( )">
</form>
Related Posts Plugin for WordPress, Blogger...

熱門文章