#include<stdio.h>
#include<conio.h>
#define Size 9


void main()
{
int i,j,b[Size] = {9, 8, 7, 6, 5, 4, 3, 2, 1};
int pass,temp;

clrscr();
//printf ("Enter the Values:\n");
  //		for(j=0; j<Size; j++)
    //			scanf("%d",&b[j]);

   printf("The Values in Array are:");
   printf("\n");
	for (j=0;j<Size;j++)
		printf ("%4d",b[j]);



		for (pass=1;pass<Size;pass++)
			{
				for (i=0;i<Size-pass;i++)
				  {
						if ( b[i] > b[i+1] )
							{
							temp=b[i];
							b[i]= b[i+1];
							b[i+1]=temp;
							}
				  }
			}



		printf("\nThe Sorted Values in Array are:");
		printf("\n");
			for (j=0;j<Size;j++)
				printf ("%4d",b[j]);
}


