A+B for Input-Output Practice (IV) 上才艺,新手入 摘要:解题思路:注意事项:sum每次赋初始值参考代码:#include<stdio.h>int main(){ int n,sum=0; while(scanf("%d",&n)&&n){ int a[n…… 题解列表 2022年12月19日 0 点赞 0 评论 112 浏览 评分:0.0
C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0,i; char a[1001]; gets(a); for(…… 题解列表 2022年12月19日 0 点赞 0 评论 143 浏览 评分:0.0
编写题解 1023: [编程入门]选择排序 摘要:解题思路:找到最小值,和第一个元素交换参考代码: import java.util.Scanner; public class Main { public static void mai…… 题解列表 2022年12月19日 0 点赞 0 评论 172 浏览 评分:0.0
C语言使用自定义函数和不使用自定义函数解决这个问题 摘要:解题思路:该题求和可分割为三个部分再最终求和,在次我用两种方法解决。参考代码:一:自定义函数解法:#include <stdio.h>#include <math.h>//求第一部分1+2+3+……+…… 题解列表 2022年12月19日 0 点赞 0 评论 186 浏览 评分:0.0
宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> #define s (a+b+c)/2#define area sqrt(s*(s-a)*(s-b)*…… 题解列表 2022年12月19日 0 点赞 0 评论 185 浏览 评分:0.0
1060: 二级C语言-同因查找 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=10; while(n<=1000) { if(n%2==0…… 题解列表 2022年12月19日 0 点赞 0 评论 148 浏览 评分:0.0
求解一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c; double x1,x2; dou…… 题解列表 2022年12月19日 0 点赞 0 评论 148 浏览 评分:0.0
2182——[编程入门]打印图案(仿写题解) 摘要: 代码块1 import java.util.Scanner; public class Main { public static void ma…… 题解列表 2022年12月20日 0 点赞 0 评论 303 浏览 评分:0.0
1003: [编程入门]密码破译(仿写题解) 摘要:代码块1 import java.util.Scanner; public class Main { public static void main(S…… 题解列表 2022年12月20日 0 点赞 0 评论 253 浏览 评分:0.0
一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float x1,x2; scanf("…… 题解列表 2022年12月20日 0 点赞 0 评论 149 浏览 评分:0.0