#include
#include
#define MAXSIZE 70
int main()
{
int x[MAXSIZE],n,i,j,tmp;
printf("Enter the number of elements: ");
scanf("%d",&n);
printf("\nEnter the elements: \n");
for(i=0;i scanf("%d",&x[i]);
for(i=0;i {
for(j=0;j {
if(x[j]>x[j+1])
{
tmp=x[j];
x[j]=x[j+1];
x[j+1]=tmp;
}
}
}
printf("\nThe Sorted Output: \n");
for(i=0;i printf("\n%d", x[i]);
getch();
return 0;
}
#include
#define MAXSIZE 70
int main()
{
int x[MAXSIZE],n,i,j,tmp;
printf("Enter the number of elements: ");
scanf("%d",&n);
printf("\nEnter the elements: \n");
for(i=0;i
for(i=0;i
for(j=0;j
if(x[j]>x[j+1])
{
tmp=x[j];
x[j]=x[j+1];
x[j+1]=tmp;
}
}
}
printf("\nThe Sorted Output: \n");
for(i=0;i
getch();
return 0;
}