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