编程入门]完数的判断 摘要:#include<stdio.h>#define max 1001int main() { int n,i,j,a[max],l; scanf("%d",&n); for(i=1; …… 题解列表 2021年12月05日 0 点赞 0 评论 624 浏览 评分:9.9
找规律再求和 摘要:解题思路:自定义函数求注意事项:注意每次输出格式参考代码:#include<stdio.h>void factor(int n){ int i,j,sum=0; for(i=1;i<n;i…… 题解列表 2021年12月01日 0 点赞 0 评论 491 浏览 评分:0.0
两次循环判断是否为完数 摘要:解题思路: 看题得:先求得完数的因子,再将因子求和才能判断是否为完数;所以首先要用双循环求得数的所有因子,用取余的办法即可;在取得因子后再求因子总和;用if进行判断;要输出题中?? its facto…… 题解列表 2021年12月01日 0 点赞 0 评论 820 浏览 评分:0.0
C语言完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int wanshu(int n){ int sum=0; int shuzu[1000]={0}; int j=0; for(int …… 题解列表 2021年11月30日 0 点赞 0 评论 558 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int n,sum,i,k; scanf("%d",&n); for(i=1;i<=n;i++) { sum=0; …… 题解列表 2021年11月15日 0 点赞 0 评论 585 浏览 评分:0.0
易懂比较简单(c语言)。 摘要:解题思路:两次循环一次找完数,一次输出因子。注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); for(…… 题解列表 2021年11月14日 0 点赞 0 评论 878 浏览 评分:0.0
题解 1017: [编程入门]完数的判断 摘要:参考代码:#include<stdio.h>#define N 500void factor(int n);//找出所有因子并按照要求输出void main(){ int i,n;//n为查找范…… 题解列表 2021年10月27日 0 点赞 1 评论 527 浏览 评分:9.9
[编程入门]完数的判断 小白写的^_^ 摘要:解题思路:通过写相应的代码求出对应的完数,再进行循环注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,n; c=0; scanf("%d",&n);…… 题解列表 2021年10月08日 0 点赞 0 评论 696 浏览 评分:8.0