题解 1955: 贷款计算

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

贷款计算-题解(Python代码)

解题思路:用列表形式进行计算注意事项:列表索引值的转换参考代码:a=input().split()a[0]=int(a[0])a[0]=a[0]*10000a[2]=int(a[2])a[1]=float(a[1])s=(a[0]/a[2])+a[0]*a[1]print(int(s))

贷款计算-题解(C语言代码)

```c#includeintmain(){intsum,month;//定义变量doubleper_month=0,rates;//定义为双精度浮点型,保证精度,变量赋处置,避免有脏数据scanf("%d%lf%d",&sum,&rates,

1955: 贷款计算

摘要:解题思路:注意事项:输出结果强转为 int 实现向下取整参考代码:#include <stdio.h> int main(){ int months; float total,rate,re……

编写题解 1955: 贷款计算

解题思路:如果输出为%d那么500*0.004为0,肯定不行输出时为%.0f就可以让500*0.004等于20了,用f算出20.000~这个值,再用.0把小数点去掉。注意事项:参考代码:#includeintmain(){inta,

编写题解 1955: 贷款计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int cal(int a ,float b ,int c ,int d){    int pb = 0;    while(d--) ……