Enter one more number(Press Sort without entering any value to start the animation):

*-Press submit after entering every value of the array

ALGORITHM FOR SELECTION SORT

1. start
2. Get input elements as 'array','count' as the number of elements
3. i=0, j=0;
4. for(i=0;i less_than n;i++)
{
for(j=i+1;j less_than n;j++)
{
if(array[i] greater_than array[j]
{
swap(array[i],array[j]);
}
}
}
5.stop