Talk:C Source Code/Sorting array in ascending and descending order

int main(void) {	int a[10], i=0, j=0, n, t;

printf ("\n Enter the no. of elements: "); scanf ("%d", &n); printf ("\n");

for (i = 0; i 0 ; i--) {		printf (" %d", a[i-1]); }

return 0; }