一、操作说明:
1.在本题文件夹中,已有 CD.c 文件。
2.点击“回答”按钮,将打开本题文件夹。请自行启动开发环境,对文件夹中的CD.c文件进行操作,根据程序的功能要求编写程序,并注意及时保存。
二、程序功能:
输入一个整数序列,以及基准,要求计算并输出该序列中基准以上的完美数之和。完美数是指一个数的所有真约数之和等于它自身。比如:6和28。6的真约数有1、2、3,且它们之和等于6;28的真约数有1、2、4、7、14,且它们之和等于28。
【输入格式】第一行先给出序列长度n(n≤20),随后是n个整数(≥2);第二行包含一个整数,为基准。
【输出格式】一个整数,表示输入的整数序列中基准以上的完美数之和。
【输入样例】
3 6 17 28
28
【输出样例】
28
没有合适的资源?快使用搜索试试~ 我知道了~
1_二级程序设计题(34).rar
共70个文件
txt:35个
c:35个
需积分: 5 0 下载量 155 浏览量
2024-04-30
16:44:36
上传
评论
收藏 27KB RAR 举报
温馨提示
1_二级程序设计题(34).rar
资源推荐
资源详情
资源评论
收起资源包目录
1_二级程序设计题(34).rar (70个子文件)
二级程序设计题(34)
27.txt 911B
07.txt 841B
08_answer.c 216B
14_answer.c 309B
26.txt 732B
33.txt 713B
21_answer.c 375B
07_answer.c 193B
34_answer.c 190B
13.txt 706B
24_answer.c 401B
18_answer.c 339B
19_answer.c 327B
22_answer.c 339B
15.txt 633B
32_answer.c 499B
30_answer.c 341B
14.txt 657B
16.txt 780B
33_answer.c 155B
01_answer.c 272B
17_answer.c 296B
00说明.txt 114B
11.txt 805B
16_answer.c 259B
30.txt 722B
05.txt 817B
06_answer.c 171B
24.txt 764B
05_answer.c 206B
34.txt 867B
25.txt 821B
15_answer.c 404B
11_answer.c 329B
13_answer.c 250B
29.txt 716B
01.txt 739B
06.txt 798B
27_answer.c 381B
19.txt 643B
23_answer.c 403B
28.txt 850B
31.txt 823B
18.txt 683B
12.txt 810B
20.txt 683B
03.txt 597B
25_answer.c 397B
20_answer.c 338B
29_answer.c 341B
04_answer.c 173B
26_answer.c 329B
21.txt 907B
22.txt 801B
02_answer.c 211B
09_answer.c 347B
31_answer.c 327B
23.txt 821B
10_answer.c 209B
12_answer.c 322B
03_answer.c 251B
02.txt 718B
10.txt 807B
32.txt 731B
09.txt 718B
17.txt 687B
CD.c 42B
04.txt 716B
28_answer.c 374B
08.txt 910B
共 70 条
- 1
资源评论
Wang'jia'ling
- 粉丝: 48
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功