[编程入门]自定义函数之数字后移-题解 (一眼看懂) -c语言代码 摘要:解题思路:a[10] = {1,2,3,4,5,6,7,8,9,10};b[10];通过输入的m判断需要移动几位数字用10-m找到需要移动的数字,然后存入b数组b[10] = {9,10};再把a[0…… 题解列表 2023年01月01日 0 点赞 0 评论 301 浏览 评分:9.9
[编程入门]自定义函数之整数处理--定位数组最小值和最大值(c语言) 摘要:解题思路:用循环找到数组里的最小值和最大值,然后进行交换。参考代码:#include <stdio.h> void input(int* a){ for(int i=0;i<10;i+…… 题解列表 2023年01月01日 0 点赞 0 评论 316 浏览 评分:9.9
编写题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,i,count=0,t; scanf("%d %d",&x,&n); …… 题解列表 2023年01月01日 0 点赞 0 评论 398 浏览 评分:9.9
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,i,count=0,t; scanf("%d",&n); fo…… 题解列表 2023年01月01日 0 点赞 1 评论 686 浏览 评分:8.4
编写题解 2828: 与7无关的数 摘要:解题思路:注意事项:参考代码://编写题解 2828: 与7无关的数 //一个正整数,如果它能被7整除,或者它的十进制表示法中某一位上的数字为7,则称其为与7相关的数。现求所有小于等于n(n < 1…… 题解列表 2023年01月01日 0 点赞 0 评论 380 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:// [编程入门]完数的判断 #include<stdio.h> int fun(int n); void func(int x); int main() { …… 题解列表 2023年01月01日 0 点赞 0 评论 296 浏览 评分:9.9
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct Student { char num[20]; char name[10]; doubl…… 题解列表 2023年01月01日 0 点赞 0 评论 306 浏览 评分:0.0
二级C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double fact(long long n); double my_pow(double …… 题解列表 2023年01月01日 0 点赞 0 评论 309 浏览 评分:0.0
C语言训练-邮票组合问题* 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() { printf("19"); return 0; }…… 题解列表 2023年01月01日 0 点赞 0 评论 317 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[100][100]; int n,i,j; int sum…… 题解列表 2023年01月01日 0 点赞 0 评论 267 浏览 评分:0.0