2006.10.23(18)
来源:互联网 发布:中海达gps怎么导出数据 编辑:程序博客网 时间:2024/05/21 07:57
#include <stdio.h>
#include "math.h"
main()
{
int n,i;
float sb,rate,t;
clrscr();
printf("Interest calculation program./n");
printf("Starting balance?");
scanf("%f",&sb);
printf("Annual interest rate percentage?");
scanf("%f",&rate);
printf("after ? years");
scanf("%d",&n);
rate=1+rate/100;
for(i=1;i<n;i++)
{
rate*=rate;
}
t=sb*rate;
printf("Balance of %d year:%g/n",n,t);
getch();
}
#include "math.h"
main()
{
int n,i;
float sb,rate,t;
clrscr();
printf("Interest calculation program./n");
printf("Starting balance?");
scanf("%f",&sb);
printf("Annual interest rate percentage?");
scanf("%f",&rate);
printf("after ? years");
scanf("%d",&n);
rate=1+rate/100;
for(i=1;i<n;i++)
{
rate*=rate;
}
t=sb*rate;
printf("Balance of %d year:%g/n",n,t);
getch();
}
- 2006.10.23(18)
- 2006.10.23
- 2006.10.23+
- 2006.10.23++
- 2006.10.23+++
- 2006.10.23(23)
- 2006.10.23(5)
- 2006.10.23(6)
- 2006.10.23(7)
- 2006.10.23(8)
- 2006.10.23(9)
- 2006.10.23(10)
- 2006.10.23(11)
- 2006.10.23(12)
- 2006.10.23(13)
- 2006.10.23(14)
- 2006.10.23(15)
- 2006.10.23(16)
- 2006.10.23(15)
- 中文搜索引擎技术揭密:系统架构
- 2006.10.23(16)
- sequence 的用法
- 2006.10.23(17)
- 2006.10.23(18)
- 2006.10.23(19)
- 2006.10.23(20)
- ORA-01034错误的解决办法
- 2006.10.23(21)
- must be caught or declared to be thrown
- 2006.10.23(22)
- 2006.10.23(23)
- 2006.10.23(24)