JAVA

Sunday, October 23, 2005

MAXMIN

public class maxmin //*用陣列寫比較方便
{
public static void main(String[] args)

{
int i,max,min;
int a[]={23,24,67,1,90};
max=min=a[0];
System.out.println("Numbers are:");
for(i=0;iSystem.out.println("MINI Number:"+min);
}
}
圖檔

0 Comments:

Post a Comment

<< Home