寫一個C程序,計算存款金額在一些年後的增加利息
#計算利息的公式為−
M=((r/100) * t); A=P*exp(M);
Where r= rate of interest
t=no. of years
” M=temporary variable
A= Final amount after interest
演算法
START Step 1: declare double variables Step 2: read amount to be deposited Step 3: read rate of interest Step 4: read years you want to deposit Step 5: Calculate final amount with interest I. M=((r/100) * t); II. A=P*exp(M); Step 6: Print final amount STOP
以上是C語言公式計算利息金額的詳細內容。更多資訊請關注PHP中文網其他相關文章!