题解 1010: [编程入门]利润计算

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

筛选

在哪你都看得到我记住这句话

摘要:解题思路:这个就是纯if else分支判断,但是就是可能题目有点长有点麻烦注意事项:参考代码:#include<iostream>usingnamespace&……

另一种解题思路

摘要:解题思路:阶梯计算,省去重复步骤注意事项:用goto防止重复计算参考代码:#include<iostream>using namespace std;int main(){ int a =……

题目 1010: [编程入门]利润计算

摘要:解题思路: 通过if-else if-else实现不同利润奖金的计算,但是需要注意本题要求整数,所以在计算中将*0.0x改*x/100,避免出现浮点数,不然可能精度错误导致某……

题目 1010: [编程入门]利润计算

摘要:解题思路:读题看清题目要求在用if语句做判断注意事项:计算条件一定要看清参考代码:#include"stdio.h"void main(){ int l; ……

就是分段函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(void){intx,award;&……

利润计算c语言求解

摘要:解题思路:利用递归思想参考代码:#include <stdio.h> int func(int n); int main() {     int n, result;     scan……