素数问题(C语言代码)易理解版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i=0; for(int j=2;j<n;j++){…… 题解列表 2023年11月24日 1 点赞 0 评论 1000 浏览 评分:0.0
用最简单的C语言做出结构体之成绩记录 摘要:解题思路:直接用结构体引用就行注意事项:参考代码:#include<stdio.h>struct input{ char num[100]; char name[100]; int score[3];…… 题解列表 2023年11月24日 0 点赞 0 评论 436 浏览 评分:9.9
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> //注意:代码中用到 sqrt(开平方)需添加头文件<math.h>#define S(a,b…… 题解列表 2023年11月24日 0 点赞 0 评论 458 浏览 评分:0.0
2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double sum=0.0; scanf("%d",&n); int a[n]; for(int…… 题解列表 2023年11月24日 1 点赞 0 评论 533 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:没学指针就先不用注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int a[n]; for(int i…… 题解列表 2023年11月24日 0 点赞 0 评论 421 浏览 评分:0.0
用C语言完成奇偶ASCII值判断 摘要:解题思路:这段代码首先提示用户输入一个字符,然后使用scanf函数接收用户的输入,并将字符赋值给变量ch。接着,通过对ch进行取模运算,判断其ASCII值是否为奇数。如果结果为1,则输出"YES",否…… 题解列表 2023年11月24日 0 点赞 0 评论 971 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, m; // 输入数组大小和移动的位置 scanf("…… 题解列表 2023年11月23日 0 点赞 0 评论 620 浏览 评分:9.9
最简单的方法,只要有耐心,不需要理解 解题思路:注意事项:参考代码:/*有N个学生,每个学生的数据包括学号、姓名、3门课的成绩,从键盘输入N个学生的数据,要求打印出3门课的总平均成绩,以及最高分的学生的数据(包括学号、姓名、3门课成绩)输入格式学生数量N占一行每个学生的学号、姓名、三科成绩占一行,空格分开。 题解列表 2023年11月23日 0 点赞 0 评论 481 浏览 评分:9.9
猴子吃桃(简易版) 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int n; int sum=2; scanf("%d",&n); for(int i=1…… 题解列表 2023年11月23日 0 点赞 0 评论 484 浏览 评分:9.9
自由下落(简单版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float m,n,sum=0; scanf("%f%f",&m,&n); float t=m…… 题解列表 2023年11月23日 0 点赞 0 评论 430 浏览 评分:9.9