using System;
public class Program
{
public static void Main()
int[] arr={6,4,10,-3,0,1};
for(int i=0;i<5;i++){
int max=arr[i];
for(int j=i;j<5;j++){
if(arr[i]>arr[j]){
int temp=arr[j];
arr[j]=arr[i];
arr[i]=temp;
}
for(int k=0;k<5;k++){
Console.WriteLine(arr[k]);
//Integer Array
//(6, 4, 10, 3, 0, 1)
//SORT THIS ARRAY
//Two Pre Conditions
//1. You cannot use another array. Sort within the same array.
//2. You cannot use any pre-defined SORT methods. Write your own.
//int[] arr=new int[6];
//for(int i=0;i<:i++)