c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%x",&n); printf("%d",n); retur…… 题解列表 2023年06月17日 0 点赞 0 评论 716 浏览 评分:0.0
利润计算,c++求解 ,if,elseif双分支解题 摘要:解题思路:注意事项:可能编译时会显示出错,尝试运行,若还错请将有y(x)函数并入main参考代码:#include<iostream>using namespace std;int y(int x)/…… 题解列表 2023年06月18日 0 点赞 0 评论 766 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student{ float score[7]; char name[50];};int main(){ struct s…… 题解列表 2023年06月18日 0 点赞 0 评论 571 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<cmath>int main(){ int num = 0; int tem…… 题解列表 2023年06月18日 0 点赞 0 评论 441 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i, j; scanf_s("%d", &n); for (i = 0; i < n; i++) …… 题解列表 2023年06月18日 0 点赞 0 评论 690 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[301]; fgets(str, size…… 题解列表 2023年06月18日 0 点赞 0 评论 602 浏览 评分:0.0
数据结构-字符串插入 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; int t=0; int j=0; c…… 题解列表 2023年06月19日 0 点赞 0 评论 691 浏览 评分:0.0
辗转相除法 解题思路:辗转相除法,最小公因数用数学表示为:gcd(a,b)=gcd(b,amodb)。最大公倍数为两数的积除以最小公因数。注意事项:因为我这里gcd函数的第一个输入值设置为较小的值,所以求余放在第一个输入中。参考代码:#includeintgcd(intx, 题解列表 2023年06月19日 0 点赞 0 评论 558 浏览 评分:0.0
完数的判断 摘要:#include <stdio.h> int main(){ int sum=1, i=2,y=2,N=0; scanf("%d",&N); for(i;i<=N;i++){ su…… 题解列表 2023年06月19日 0 点赞 0 评论 512 浏览 评分:0.0
有规律的数列求和 摘要:#include <stdio.h> int main(){ int N=10,i; float x=2.0,y=1.0,z=0.0,sum=2.0; //scanf("%d",&N);…… 题解列表 2023年06月19日 0 点赞 0 评论 489 浏览 评分:0.0