package unit2_section_6_1007;
public class section_6_1007_4 {
public static void main(String[] args) {
int [] num = {0 , 1 , 0 , 3 , 12} ;
int minIndex = 0 ;
int maxIndex = num.length - 1 ;
int centerIndex = (minIndex + maxIndex) / 2 ;
int temp = 0 ;
for(int i = 0 ; i < num.length -1 ; i++)
{
for(int j = 0 ; j < num.length - i - 1 ; j++)
{
if(num[j] < num[j + 1])
{
temp =num[j] ;
num[j] = num[j + 1] ;
num[j + 1] = temp ;
}
if(j == 2 && i == 1)
{
for(int a = 0 ; a < num.length ; a++)
{
System.out.print(num[a]);
System.out.print(" ");
}
}
}
}
}
}