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

You may also like...

1 Response

  1. akash ruhil says:

    thank you, so much sir for all of your programs…… thanx a lot..

Leave a Reply

Your email address will not be published. Required fields are marked *