C语言课后编程题答案.pdfVIP

  • 28
  • 0
  • 约9.45千字
  • 约 21页
  • 2021-05-24 发布于湖北
  • 举报
3-3-1 #include stdio.h void main() { int x,a,b,c; scanf(%d,x); a=x%10; b=x/10%10; c=x/100; x=a*100+b*10+c; printf(%d\n,x); } 4-3-2 #include stdio.h void main() { int a,b,c,d,t; scanf(%d%d%d%d,a,b,c,d); if(ab){t=a;a=b;b=t;} if(ac){t=a;a=c;c=t;} if(ad){t=a;a=d;d=t;} if(bc){t=b;b=c;c=t;} if(bd){t=b;b=d;d=t;} if(cd){t=c;c=d;d=t;} printf(%d,%d,%d,%d\n,a,b,c,d); } 4-3-3 #include stdio.h #include math.h void main() { double a,b,c,t,x1,x2;

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档