- 6
- 0
- 约1.67万字
- 约 30页
- 2021-08-13 发布于广东
- 举报
第一部分
3. #includestdio. h
#includeconio. h
main()
{
int i=33;
while(i=127)
{
printf(%d-%c\n, i, i);
i++;
}
getch();
}
#includestdio. h
#includeconio. h
main()
{
int a, i, n;
scanf (%d, a);
while(a/10!=0)
{
n=a%10;
printf(%d, n);
a=a/10;
}
printf (%d, a); getch ();
}
#include〈stdio. h
#includeconio. h
main()
{
int n=l;
float m=l, s=0, a=l;
whi.le (m=le-4)
{
s=s+m;
n+=2;
m=a/n;
}
printf (%f: s); getch ();
}
14. #includestdio. h
#includeconio. h
main()
{
int a=l, b=l, c, m, n, i;
printf(^Please enter m :\n);
prirrtf (Please enter n : \n); scanf (%d%d, m, n);
{
for(i=l;i=m;i++)
a=a*i;
for(i=l;i=n;i++)
b=b*i;
}
c=a+b;
printf (%d+%d=%d\n, a, b, c);
getch ();
}
17. #includestdio. h
#includeconio. h
main()
{
int s=O;
int i;
for(i=l;i=100;i++)
{
if(i%7==0||(i+3)%10==0) {
printf (%d ”,i);
s=s+l;
}
}
printf(Xn);
printf (%d ”, s);
getch ();
}
19. #includestdio. h
#includeconio. h
main()
int a, i=O;
printf (,z输入一个整数:\n);
scanf(%d, a); while(a!=O)
a/=10; i++; } printf C其位数为:%d\n, i); getch ();
}
24. #includestdio. h
#include〈conio. h
main()
{
int i, j;
for(i=l;i=9;i++)
{
for(j=l;j=i;j++)
printf (,,%d*%d=%d\tz,, i, j, i*j);
printf(\n);
}
getch ();
}
27. #includestdio. h
#includestdlib. h
#includeconio. h
main()
{
int i=l, j=l, m=0;
for(i=l;i200;i++)
{
for(j=l;j=i;j++) if(i%j==O) m++;
}
if(m==l||m==2)
printf(%d\n, i);
m=0;
getch ();
system(pause);
}
29. #includestdio. h #includeconio. h main()
int m;
printf (Please enter m:\n); scanf(%d, m);
switch(m)
:print! ( + plus\n );
break;
:print! ( 一 minus\n );
break;
case 3: printf (^^^^^mutiplyXn^);
break;
:pnntf( / divide\n );
break;
default: printf(Sorry, you are wrong);
getch ();
37. #includestdio. h #includeconio. h main ()
int a[4], i, j, b; printf (输入整数:\n); for(i=0;i4;i++) scanf(%d, a[i]); for(i=0;i3;i++) for(j=i+l;j4;j++) if(a[i]a[j])
{
b=a[i];
a[i]=a[j];
a[j]=b;
}
printf C从小到大输出:\n〃); for(i=0;i4;i++)
printf (%d\t, a[i]);
getch ();
}
38. #includestdio. h
#includeconio. h main()
{
int i, s;
double salary;
printf(Please enter i:\n);
您可能关注的文档
- 游戏法在小学英语教学中的应用.doc
- 游戏管理与运营.docx
- 游戏活动案例与分析.docx
- 游戏活动区设计与指导.docx
- 游戏活动总结.doc
- 游戏开发基础实验三.doc
- 游戏联运合作模板协议.doc
- 游戏软件专业实习报告范文.doc
- 游戏数值分析报告.doc
- 游戏特效策划案.docx
- 伟明环保-市场前景及投资研究报告-境内业务稳健运行,印尼市场贡献边际增量.pdf
- 桂东县法院系统招聘考试真题2025.pdf
- 贵州省黔南布依族2026年中考三模物理试题及答案.pdf
- 贵州省黔南州2026年中考语文二模试卷附答案.pdf
- 贵州省铜仁市2026年中考语文二模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套完整答案详解.docx
- 贵州省毕节市2026年中考语文一模试卷附答案.pdf
- 贵州省贵阳市南明区2026年中考语文一模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套参考答案详解.docx
- 贵州省贵阳市白云区2026年中考二模物理试题附答案.pdf
最近下载
- 第六章 《中国的地理差异》 课件 2025人教版地理八年级下册.ppt
- 2025至未来5年中国无刷电机控制器市场数据分析及竞争策略研究报告.docx
- 2025中央民族大学教学科研人员招聘3人笔试参考试题附答案解析.docx VIP
- 2023年湖北省高考数学试卷真题(含答案详解).pdf
- IATF16949汽车认证方案获得并保持IATF认可的规则 第六版-A1(1).pdf VIP
- 园林生态学教学课件电子教案全套课件.pptx
- AIGC驱动的室内设计课程项目化教学.docx VIP
- DB46_T 692-2025 避寒旅游目的地气候资源评价技术规范.docx VIP
- DB37_T 4904-2025 链式切割水泥土连续墙技术规程.docx VIP
- 2023年湛江雷州市公安局招聘警务辅助人员考试真题及答案.docx VIP
原创力文档

文档评论(0)