- 3
- 0
- 约1.04万字
- 约 22页
- 2017-02-12 发布于河南
- 举报
计算机三级答案
void countValue()
{
int i,temp;
int gw,sw,bw,qw;
for(i=1000;i=5000;i++)
{
temp=i;
qw=temp/1000;
temp=temp-qw*1000;
bw=temp/100;
temp=temp-bw*100;
sw=temp/10;
gw=temp-sw*10;
if((qw+bw)==(sw+gw)(qw+bw)==(10*(gw-qw)))
{
cnt++;
sum+=i;
}
}
}
float countValue()
{
int flag=1;//定义所需变量
float x1=0.0,x0;
while(flag)
{
x0=x1;
x1=cos(x0);
if(fabs(x0-x1)0.000001)//当x0-x1的绝对值小于0.000001
flag=0;
}
return x1;
}
void jsValue()
{
int i,j,temp;//定义所需变量
int gw,sw,bw,qw;
for(i=0;i300;i++)//扫描数组a中的元素
{
temp=a[i];//提取各位数上的数字
qw=temp/1000;
temp=temp-qw*100
您可能关注的文档
最近下载
- 幼儿园大班语言《是谁嗯嗯在我的头上》课件.pptx
- 高考生物必背85个知识点分析.doc VIP
- 高考生物必背85个知识点总结.doc VIP
- 高考必背的85个重要生物知识点总结.docx VIP
- 2025届高考生物必背的85个重要知识点总结.docx VIP
- 中国文化概况A-Glimpse-of-Chinese-Culture(修订版)Chapter-8.ppt VIP
- 2026年高考生物必背85个重要知识点总结汇编.pdf VIP
- 预防高处坠落事故专项施工方案.docx VIP
- AutoCAD2022实用教程全套完整教学课件.pptx
- Soundcraft声艺Signature 22MTK Outline Dimensions file)说明书用户手册.pdf
原创力文档

文档评论(0)