Homework 5/29
package s9226307;public class Square
{
public static void main(String[] args)
{
int i , j ;
int box;
int[]age={9,7,10,1,3};
for(i=0;i<5;i++) j="i+1;j<5;j++)">age[i])
{
box=age[i];
age[i]=age[j];
age[j]= box ;
}
}
System.out.println(age[i]*age[i]);
}
}
}
====================
100
81
49
9
1
0 Comments:
Post a Comment
<< Home