編個程式,根據使用者輸入的本金,存款年數,年利率計算到期本息,並扣除20的個人所得稅,輸出實際利息

時間 2022-04-11 15:05:08

1樓:匿名使用者

#include "stdio.h"

int main(void)

我是新手啦,剛學沒幾節課,用c語言編寫乙個程式,輸入本金,存款年數年利率計算到期本息並扣除20%個人

2樓:樂vov樂

scanf("%f,%d",&a,&d); //這一句,輸入格式不匹配,應該是整數,你寫成浮點數了

3樓:匿名使用者

#include

void main ()

改成上面這樣行回不行答

輸入時 本金a存 和 款年數d 用 逗號 隔開

vb編寫乙個程式,根據本金a、存款年數n和年利率p計算到期利息。提示:到期利息計算公式為a*(1+

4樓:篤俠

private sub command1_click()lbllx = txta * (1 + txtp) ^ txtn - txta

end sub

注:其中 txta、txtp 和 txtn為輸入本金、利率和存期的文字框,lbllx 為顯示利息的標籤。

執行介面為:

編寫乙個程式,根據存款本金money、存款年數year和年利率rate來計算利息

5樓:匿名使用者

#include

void main()

有問題再找我

我編了個求實際利息的程式 a是本金 b是年數 c是利率 還有20%稅 怎麼結果都是0

6樓:

8/10=0 在c語言中預設兩個整數相除,結果是零。你定義兩個符點數數值常量,然後在相除試試。

c語言程式設計 程式設計:根據本金a、存款年數n和年利率p計算到期利息。

7樓:四捨**入

可以參考下面的**復(a百分比下的利率制,b本金,c年數bai):#include

#define ldb long doubleusing namespace std;

ldb a,b;

int c;

int main()

8樓:匿名使用者

#include

#include

void main()

9樓:匿名使用者

恩 你的問題 有點多 直接寫個計算函式 其他根 據本金a、存款年數n和年利率p 為引數 計算到期利息為函式返回值

10樓:匿名使用者

l=a*pow(1+p/100)n-a 這句是什麼意思,還有你的l在哪宣告了,pow好像也不是這麼用的吧pow(float,int)

請問誰能根據圖中的本金,存款年限,年利率計算出稅後本息合計,利息是扣20%的稅!!??

11樓:慶年工坊

c14填入

=$b14*(1+c$13)^c$12

下拉,右拉

12樓:秀才

在c14輸=(1+((1+c$13)*c$12-1)*0.8)*$b14,向右向下拖即可

請用c語言編寫乙個輸入本金,存期(年),求到期時本息和的程式。

13樓:燕歸來

#include

#include

int main()

else if(year<5)

else if(year<10)

else

printf("本息和為%f\n",sum);

return 0;}

我想用python編個小程式,迴圈計算使用者給處的任意兩個整數之間的水仙花數

coding gbk while true inp l raw input 下限 inp h raw input 上限 if inp l e or inp h e break try inp l,inp h int inp l int inp h except valueerror print 不合...

使用者用vb編寫程式 輸入年份和月份,程式能夠判斷其是否是閏年,那個季節,這個月多少天

將以下內容復到記事本中 然後 儲存為 form1.frm version 5.00 begin vb.form form1 caption form1 clientheight 4830 clientleft 60 clienttop 450 clientwidth 8325 linktopic f...

用c語言編寫一程式,使用者輸入日期,計算該日是今年的第幾天

會飛的小兔子 include stdio.h include stdlib.h intmain intday,month,year,sum,leap printf npleaseinputyear,month,day n scanf d,d,d year,month,day switch month...