用C语言进行利润计算,小白解法 摘要:解题思路:就是做数学题,分段讨论注意事项:别算错参考代码:#include<stdio.h>int main(){ int p,a; scanf("%d",&p); if(p>=0&…… 题解列表 2024年02月19日 0 点赞 0 评论 77 浏览 评分:0.0
[编程入门]利润计算注意前面的计算要进行叠加,,, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d",&i); if(i<=100000) j=0.1*i; if(i…… 题解列表 2024年03月18日 0 点赞 0 评论 154 浏览 评分:0.0
C语言:switch语句 摘要:解题思路: 直接利用switch语句来实现注意事项:参考代码:#include<stdio.h>int main(){ int a,d; scanf("%d",&a); switch…… 题解列表 2024年03月25日 0 点赞 0 评论 176 浏览 评分:0.0
耐心,细心,用心 摘要:解题思路:if-else if语句注意事项:注意差值问题参考代码:import java.util.Scanner;public class Main { public static void mai…… 题解列表 2024年04月03日 0 点赞 0 评论 239 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,y; cin>>x;//利润 if(x<=100…… 题解列表 2024年07月11日 0 点赞 0 评论 314 浏览 评分:0.0
C语言题解(不用分别每个阶段计算版) 摘要:解题思路: 分析题目的过程中发现这就像一个集合,其实最后的分类是包含最开始的分类的。所以认为可以直接拆开,符合条件的继续计算,不符合的只算部分。注意事项: 必须注意这样分段的过程中,应该…… 题解列表 2024年09月15日 1 点赞 0 评论 183 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算 摘要:解题思路:将奖金和利润的关系分为6种情况:①:利润l<100000时,奖金提成10%;②:利润100000<I≤200000时,低于等于100000元部分按10%提成,高于100000元的部分,可提成…… 题解列表 2024年09月19日 2 点赞 0 评论 420 浏览 评分:0.0
就是分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(void){intx,award;&…… 题解列表 2025年01月27日 0 点赞 0 评论 267 浏览 评分:0.0
题目 1010: [编程入门]利润计算 摘要:解题思路:读题看清题目要求在用if语句做判断注意事项:计算条件一定要看清参考代码:#include"stdio.h"void main(){ int l; …… 题解列表 2025年02月08日 3 点赞 0 评论 518 浏览 评分:0.0
[编程入门]利润计算 摘要:```c#include int main() { int x; int l; scanf("%d",&x); if(x>1000000){ …… 题解列表 2025年03月08日 1 点赞 0 评论 478 浏览 评分:0.0