看板 NTUBSE-B-96 關於我們 聯絡資訊
Write a recursive function power(base,exponent) that when invoked returns exponent base For example,power(3,4)=3*3*3*3.Assume that exponent is an integer greater than or equal to 1.Hint:The recursion step would use the relationship exponent exponent-1 base =base*base and the terminating condition occurs when exponent is equal to 1 because 1 base =base 沒了 -- 如果我們具有磁場, 則當我們每次經過電冰箱門的時候, 我們都可能會與冰箱門撞在一起, 所以人的身體不具有磁場是有其優點的。 節錄自Fundamentals of Physics 7ed by Halliday&Resnick&Jearl Walker -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.242.26
axisaxes:樓下 你900搶很快嘛 04/22 00:11