北理工网络教室c语言编程练习(North tech network classroom C language programming exercises).docVIP

  • 2
  • 0
  • 约7.58千字
  • 约 24页
  • 2017-08-04 发布于河南
  • 举报

北理工网络教室c语言编程练习(North tech network classroom C language programming exercises).doc

北理工网络教室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+

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档