title: bubble sort by only single loop
body: <p>I am doing sorting of numbers by bubble sort. where as I want to see if this sorting can be done by using only single loop, as we use 2 for loops in bubble sort. Can someone please tell me how it can be done and also if it is even possible ?</p>