C语言程序的设计课后复习题答案.docxVIP

  • 21
  • 0
  • 约2.68万字
  • 约 21页
  • 2020-03-14 发布于安徽
  • 举报
1-5 #includestdio.h int main() { printf(*************************\n\n); printf( Very Good!\n\n); printf(*************************\n); return 0; } 1-6 #includestdio.h int main() { int a,b,c,max; printf(please input a,b,c:\n); scanf(%d,%d,%d,a,b,c); max=a; if (maxb) max=b; if (maxc) max=c; printf(The largest number is %d\n,max); return 0; } 2-4.1 #include stdio.h #include string.h int main() { char a[5]=酱油,b[5]=醋,c[5]; strcpy(c,a); strcpy(a,b); strcpy(b,c); printf(a=%s,b=%s\n,a,b); return 0; } 2-4.2 #include stdio.h int main() { float a[10]; int i; float max; f

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档