解题思路:
注意事项:
参考代码:
#include<stdio.h>
int cal(int a ,float b ,int c ,int d)
{
int pb = 0;
while(d--)
{
int x = pb;
pb =((a*10000)/c)+(a*10000-x)*b;
}
return pb;
}
int main()
{
int a,c;
float b;
scanf("%d %f %d",&a,&b,&c);
printf("%d\n",cal(a,b,c,1));
return 0;
}
0.0分
2 人评分
C语言程序设计教程(第三版)课后习题1.5 (C++代码)浏览:755 |
最长单词 (C语言代码)浏览:1362 |
妹子杀手的故事 (C语言代码)浏览:1218 |
最小公倍数 (C语言代码)浏览:1026 |
1024题解浏览:806 |
母牛的故事 (C语言代码)浏览:940 |
Hello, world! (C语言代码)浏览:714 |
字符逆序 (C语言代码)浏览:455 |
整除的尾数 (C语言代码)浏览:809 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:539 |