#include
#include
void main()
{
clrscr();
int a[100],i,n,j,temp;
cout<<"How many element: "; cin>>n;
cout<<"Enter the elements of array: "<>a[i];
cout<<"The elements of array Before Sorting: "<a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
cout<<"Elements of array After Sorting: "<
for(i=0;i
cout<
getch();
}
#include
void main()
{
clrscr();
int a[100],i,n,j,temp;
cout<<"How many element: "; cin>>n;
cout<<"Enter the elements of array: "<
cout<<"The elements of array Before Sorting: "<
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
cout<<"Elements of array After Sorting: "<
}