c语言编程 依次输入10个数,找出其中的最大数。

[复制链接]
查看11 | 回复3 | 2010-6-18 14:43:12 | 显示全部楼层 |阅读模式
#include int main(void){ int i = 0, max = 0, x =0;printf("请输入10个整数:"); for(i=0;i max) max = x; }//next printf("最大值为:%d", max); return 0;}
回复

使用道具 举报

千问 | 2010-6-18 14:43:12 | 显示全部楼层
voidmain(){inta[20],i;printf("pleaseenterthe20numbers:");for(i=0,ia[i+1])a[i+1]=a;printf("\nth
回复

使用道具 举报

千问 | 2010-6-18 14:43:12 | 显示全部楼层
#includevoid main(){int i,max,a;printf("please input ten numbers: ")for(i=0;ia?max:a;printf("the max number is:%d",max);}vs编译通过。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行