#include <stdio.h>
int main() {
int n = 5;
int i,j,a[n],temp,min = 0 ;
printf("Enter the array elements:");
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i = 1;i<n;i++){
for(j = 0;j<i;j++){
if(a[j] > a[i]){
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
for(i=0;i<n;i++){
printf("%d\t",a[i]);
}
return 0;
}