bool isswapped=false; //(optimising)deciding if the array is already sorted. //if not then the loop will be skipped and already sorted arrays will not run the loops ...