Input-Output Practice小结 摘要:@1限定个数的加法#include<stdio.h>int main(){ int n; scanf("%d",&n); //优势:有效求解限定个数的加法,效率高 int a[100],b[100…… 文章列表 2022年10月23日 0 点赞 0 评论 119 浏览 评分:9.9
1085: A+B for Input-Output Practice (I) 以输入作为条件 摘要:#include<stdio.h>int main(){ int a,b,c; while(scanf("%d%d",&a,&b))//用输入做条件 { c=a+b; printf("%d",c)…… 文章列表 2022年10月22日 0 点赞 0 评论 163 浏览 评分:9.9
尼科彻斯定理——Java语言 摘要:## 尼科彻斯定理 对于power运算需要自己写一个方法,因为Math类所提供的pow方法会有误差,这一方法的误差在C语言的pow方法中同样存在!因为本题只设计立方运算,所以在power方法中其实可…… 文章列表 2022年10月21日 0 点赞 0 评论 357 浏览 评分:5.3
C语言实现发奖学金 摘要:```c #include struct Student { int id; int Chinese; int Math; int English; …… 文章列表 2022年10月21日 0 点赞 0 评论 161 浏览 评分:0.0
找出>100且个十位相加%10==百位的素数 摘要:#include<stdio.h>int main(){ int m,n,i,a,b,c,d; scanf("%d%d",&m,&n); for(i=m;i<=n;i++){ …… 文章列表 2022年10月20日 0 点赞 0 评论 134 浏览 评分:9.9
浮点型数据类型存储空间大小 摘要:#include <stdio.h> int main() { float a; double b; printf("%d %d",sizeof(a),sizeof(b)); re…… 文章列表 2022年10月16日 0 点赞 1 评论 185 浏览 评分:9.5
垂直直方图 摘要:题目描述输入4行全部由大写字母组成的文本,输出一个垂直直方图,给出每个字符出现的次数。注意:只用输出字符的出现次数,不用输出空白字符,数字或者标点符号的输出次数。为什么我这个代码提交之后显示答案错误?…… 文章列表 2022年10月15日 0 点赞 0 评论 245 浏览 评分:9.9
啊哈c_103_while_2 摘要:打印结果: 第一行 是你输入的数字。  #include int m…… 文章列表 2022年10月15日 0 点赞 0 评论 188 浏览 评分:9.9
啊哈c_103_while_1 摘要:打印结果如下: 第一行为你输入的值。  #include int ma…… 文章列表 2022年10月15日 0 点赞 0 评论 214 浏览 评分:9.9
题目 1010: [编程入门]利润计算 摘要:这道题我使用了“switch”判断语句来解决不同金额条件下的求值问题【题目描述】:企业发放的奖金根据利润提成。利润低于或等于100000元的,奖金可提10%;利润高于100000元,低于200000元…… 文章列表 2022年10月13日 0 点赞 5 评论 356 浏览 评分:9.9