/* To read a number from KB and print it in the ascending order or sorting */
#include< stdio.h>
int n;
main()
{
	int i,a[100];
	clrscr();
	printf("enter number of values\n");
	scanf("%d",&n);
	for(i=0;i=a[j])
	      {
		temp=a[i];
		a[i]=a[j];
		a[j]=temp;
	      }
	  }
	}
}
display(a)
int a[];
{
	int i;
	for(i=0;i< n;i++)
	   printf("%d\t",a[i]);
}


/* Exercise 1: To read a number from KB and print it in descending order */