#include<stdio.h>
void main()
{
int a[100];
int i,j,temp,n;
printf("\n Enter the Limit :");
scanf("%d",&n);
printf("\n Enter the %d Elements.....\n",n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n-1;i++)
{
for(j=i+1;j<n;j++)
{
if(a[i]>a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
printf("\n Array after Linear sort......\n");
for(i=0;i<n;i++)
printf("\t%d\t",a[i]);
}