C++ Program for Selection sort
C++ Program for Selection sort .
/**************************************************************
Author: Arun Vishnu M V
Web: www.arunmvishnu.com
Description: C++ Program for Selection sort .
***************************************************************/
#include
#include
#include
void main()
{
int array[100],n,i,j,temp;
clrscr();
cout<<"How many numbers--> ";
cin>>n;
cout<<"Enter "<>array[i];
for(i=0;iarray[j])
{
temp=array[i];
array[i]=array[j];
array[j]=temp;
}
}
cout<<"\nArray is sorted in ascending order.\n";
for(i=0;i
thank you, so much sir for all of your programs…… thanx a lot..