亲和数(水题) ```c#includelonglongf(intn){longlongi,sum=0;for(i=1;i 题解列表 2023年02月02日 0 点赞 0 评论 554 浏览 评分:0.0
使用选择法排序字符串 ```c#include#includeintmain(){chara[3][100];for(inti=0;i 题解列表 2023年02月02日 0 点赞 0 评论 620 浏览 评分:0.0
判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); if(x%3==0&&x%5==0) printf("Y…… 题解列表 2023年02月02日 0 点赞 0 评论 496 浏览 评分:0.0
递归写法,分子分母拆分成2组斐波那锲数列 摘要:#include<stdio.h> int Fun(int n) { if (n==1) { return 1; } if (n==2) { return 2; …… 题解列表 2023年02月02日 0 点赞 0 评论 514 浏览 评分:0.0
结构体之时间设计C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct date{ int year; int month; int d…… 题解列表 2023年02月02日 0 点赞 0 评论 513 浏览 评分:0.0
第一个写题解的 有点意外哈哈 ```c#include#includeintmain(){chara[1000];intflag=0;//flag作为间断点gets(a);//gets能接收空格,不能使用scanf(切记)for(inti=0;i 题解列表 2023年02月02日 0 点赞 0 评论 738 浏览 评分:8.0 自定义函数之整数处理(入门必备) 题目:输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。写三个函数;①输入10个数;②进行处理;③输出10个数。分析:1,输入10个整数,并实现各个整数的交换,要用到数组(arr)。连续输入10个整数需要循环,用for语句即可。 题解列表 2023年02月01日 0 点赞 0 评论 655 浏览 评分:9.9 递归写法,新手尝试,欢迎优化 摘要:#include<stdio.h> #include<math.h> int Fun(int x) { while (x > 0) { return 2 * ((int)pow(1…… 题解列表 2023年02月01日 0 点赞 0 评论 429 浏览 评分:0.0 1157 亲和数 利用函数解决 摘要:#include<stdio.h>#include<math.h>int fun(int n){ int i,a,b,c,m,sum=0; m=sqrt(n);//可提高效率 for(i=2;i<=…… 题解列表 2023年02月01日 0 点赞 0 评论 481 浏览 评分:9.9 甲流病人初筛(结构体做法、C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct person{ char name[10]; float temperat…… 题解列表 2023年02月01日 0 点赞 0 评论 835 浏览 评分:9.9 « 12...630631632633634635636...29572958 »
自定义函数之整数处理(入门必备) 题目:输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。写三个函数;①输入10个数;②进行处理;③输出10个数。分析:1,输入10个整数,并实现各个整数的交换,要用到数组(arr)。连续输入10个整数需要循环,用for语句即可。 题解列表 2023年02月01日 0 点赞 0 评论 655 浏览 评分:9.9
递归写法,新手尝试,欢迎优化 摘要:#include<stdio.h> #include<math.h> int Fun(int x) { while (x > 0) { return 2 * ((int)pow(1…… 题解列表 2023年02月01日 0 点赞 0 评论 429 浏览 评分:0.0
1157 亲和数 利用函数解决 摘要:#include<stdio.h>#include<math.h>int fun(int n){ int i,a,b,c,m,sum=0; m=sqrt(n);//可提高效率 for(i=2;i<=…… 题解列表 2023年02月01日 0 点赞 0 评论 481 浏览 评分:9.9
甲流病人初筛(结构体做法、C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct person{ char name[10]; float temperat…… 题解列表 2023年02月01日 0 点赞 0 评论 835 浏览 评分:9.9