- 2
- 0
- 约7.58千字
- 约 24页
- 2017-08-04 发布于河南
- 举报
北理工网络教室c语言编程练习(North tech network classroom C language programming exercises)
Enter the value of X, and then the value of the corresponding y.
#includestdio.h
Int, main ()
{
Int, x, y;
Scanf (%d, x);
If (x2x=10)
Printf (%d\n, x* (x+2));
Else if (x-1x=2)
Printf (%d\n, 2*x);
Else if (x=-1)
Printf (%d\n, X-1);
Else printf (Error\n);
}
Output four integers in order
#includestdio.h
Int, main ()
{int, a, B, C, d;
Scanf (%d,%d,%d,%d, a, b, c, d);
If (ab) {a+=b; b=a-b; a-=b;}
If (ac) {a+=c; c=a-c; a-=c;}
If (ad) {a+=d; d=a-d; a-=d;}
If (bc) {b+=c; c=b-c; b-=c;}
If (bd) {b+=d; d=b-d; b-=d;}
If (cd) {c+
您可能关注的文档
- 广东省某县人民医院人力资源管理咨询案例(A county in Guangdong province people's hospital human resources management consulting case).doc
- 广东80.90后的童年是这样过的(Guangdong 80., 90's childhood is like this).doc
- 果树盆景之嫁接改良技术要点(Technical points of grafting improvement of fruit bonsai).doc
- 广东话经典谒后语大全(Cantonese classics).doc
- 广东歇后语(Guangdong twisters).doc
- 广告活动策划案(Advertising campaign planning case).doc
- 广告机介绍(Introduction to advertising machines).doc
- 果蔬农药残留排行榜苹果药多 洋葱药少(List of pesticide residues in fruits and vegetables more apples and less onion).doc
- 广告设计的色彩管理和色彩匹配(Color management and color matching in advertising design).doc
- 海康威视常见问题(Hikvision FAQ).doc
- 新疆塔城地区第一高级中学2025-2026学年高一下学期学情自测物理试卷(含解析).docx
- 苏教版五年级上册数学 期中检测卷.doc
- 新疆维吾尔自治区昌吉回族自治州呼图壁县2025-2026学年九年级上学期1月期末英语试题(含解析).docx
- 新疆维吾尔自治区和田地区和田市2025-2026学年上学期八年级英语期末试卷(含解析).docx
- 四川省绵阳市游仙区2025-2026学年七年级上学期1月期末英语试题(含解析).docx
- 苏教版三年级上册数学 第三单元测试题.doc
- 四川省绵阳市梓潼县2025-2026学年八年级上学期1月期末物理试题(含解析).docx
- 四川省绵阳市盐亭县四校联考2025-2026学年八年级下学期物理学情自测(含解析).docx
- 房颤患者太极拳练习.pptx
- 苏教版五年级上册数学 期末检测卷.doc
原创力文档

文档评论(0)