#include<iostream.h> const int n=10; void main() { int i,x,a[n]; cout<<"input in 10 num:"; for ( i=0; i<n; i++ ) cin>>a[i]; x=a[0]; i=1; while ( i<n ) { if ( a[i]>x ) x=a[i]; i++; } cout<<"10 num max is:"<<x<<endl; }
by: 发表于:2018-01-25 09:42:34 顶(0) | 踩(0) 回复
??
by: 发表于:2018-01-25 09:42:34 顶(0) | 踩(0) 回复
??
回复评论