[code="java"]var a = 3;var b = 4;
a*ba*b*ba*b*b*ba*b*b*b*b
請問a*b要怎麼寫成迴圈的形式for (i = 1; i <= 4; i++){//想不出來}[/code]
a*=b;
a * Math.pow(b,i);