horsemanship世界

星期一, 6月 05, 2006

Homework8

package ten;
public class matrix {
public static void main(String[] args)
{
int x , y ;
int box;
int[]age={7,6,9,2,5};
for(x=0;x<5;x++) y="x+1;y<5;y++)">age[x])
{
box=age[x];
age[x]=age[y];
age[y]= box ;}}
System.out.println(age[x]*age[x]);}}}


結果:

0 Comments:

張貼留言

<< Home