解题思路:
注意事项:
参考代码:
#include<stdio.h> #include<malloc.h> int main() { int n; int j; j = 0; int max; while (scanf("%d",&n) != EOF) { max = n; do { if (n>max) max = n; scanf("%d", &n); } while (n != 0); printf("%d\n", max); } return 0; }
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:578 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:538 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:510 |
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)浏览:612 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:372 |
蚂蚁感冒 (C语言代码)浏览:1319 |
C二级辅导-统计字符 (C语言代码)浏览:476 |
Quadratic Equation (C语言代码)浏览:988 |
1392题解(大数相加)浏览:601 |
C二级辅导-温度转换 (C语言代码)浏览:540 |