#include <stdio.h>

int main()
{
int i,e;
int temp;
int A[10]={10,55,16,20,64,41,34,23,56,0};
for(e=0;e<10;e++)
{
for(i=0;i<10-1;i++)
{
if(A[i]>A[i+1])
{
temp=A[i];
A[i]=A[i+1];
A[i+1]=temp;
}
}
}
printf("Sorted array is:\n");
for(i=0;i<10;i++)
{
printf("%d\n",A[i]);
}
return 0;
}