A+B for Input-Output Practice 小结2 摘要:加法输入可以分为有结束标志型和无结束标志型也可分为 确定长度型和无确定长度型 也有特殊 既无结束标志也无确定长度#include<stdio.h>int main(){…… 文章列表 2022年10月24日 0 点赞 0 评论 288 浏览 评分:9.9
最大公约数和最小公倍数 摘要:int divisor(int x,int y){ int r; r=x%y; while(r!=0) {x=y;y=r;r=x%y;} return(y);}int m…… 文章列表 2022年10月24日 0 点赞 0 评论 216 浏览 评分:6.0
Input-Output Practice小结 摘要:@1限定个数的加法#include<stdio.h>int main(){ int n; scanf("%d",&n); //优势:有效求解限定个数的加法,效率高 int a[100],b[100…… 文章列表 2022年10月23日 0 点赞 0 评论 199 浏览 评分: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 评论 236 浏览 评分:9.9
尼科彻斯定理——Java语言 摘要:## 尼科彻斯定理 对于power运算需要自己写一个方法,因为Math类所提供的pow方法会有误差,这一方法的误差在C语言的pow方法中同样存在!因为本题只设计立方运算,所以在power方法中其实可…… 文章列表 2022年10月21日 0 点赞 0 评论 446 浏览 评分:5.3
C语言实现发奖学金 摘要:```c #include struct Student { int id; int Chinese; int Math; int English;…… 文章列表 2022年10月21日 0 点赞 0 评论 228 浏览 评分: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 评论 216 浏览 评分:9.9
浮点型数据类型存储空间大小 摘要:#include <stdio.h> int main() { float a; double b; printf("%d %d",sizeof(a),sizeof(b)); re…… 文章列表 2022年10月16日 0 点赞 1 评论 242 浏览 评分:9.5
垂直直方图 摘要:题目描述输入4行全部由大写字母组成的文本,输出一个垂直直方图,给出每个字符出现的次数。注意:只用输出字符的出现次数,不用输出空白字符,数字或者标点符号的输出次数。为什么我这个代码提交之后显示答案错误?…… 文章列表 2022年10月15日 0 点赞 0 评论 332 浏览 评分:9.9
啊哈c_103_while_2 摘要:打印结果: 第一行 是你输入的数字。  #include int m…… 文章列表 2022年10月15日 0 点赞 0 评论 265 浏览 评分:9.9