Array Descending Order

Problem: Array Ascending Order 
#include<stdio.h>     

#include<conio.h>

void main(void)

{

clrscr();

int i,j,c,num,a[100];

printf(“\nProg: Ascending Order”);

printf(“\nEnter How many Number:..”);

scanf(“%d”,&num);

printf(“\nEnter Integer:”);

for(i=0;i

{

scanf(“%d”,&a[i]);   /* input data */

}

for(i=0;i

{

for(j=i+1;j<num;j++)

{

if(a[i]>a[j])

{

c=a[i];

a[i]=a[j];

a[j]=c;

}

}

}

printf(“\nAscending Order:”);   /* Sorting Ascending Order */

for(i=0;i<num;i++)

{

printf(“\n%d”,a[i]);

}

getch();

}