using System;
public class Program
{
public void arrswap(int[] arr)
int n = arr.Length;
for(int i=0; i<n-1; i++){
bool swap = false;
for (int j = 0; j<n-1; j++){
if(arr[j] > arr[j + 1]){
int temp = arr[j];
arr[j] = arr[j + 1];
arr[j + 1] = temp;
swap = true;
}
if (!swap)
break;
public static void Main(){
int[] arr = {6, 4, 10, 3, 0, 1};
arrswap(arr);
Console.