C Program to sort N numbers in ascending order

#include "stdio.h"
void ascending (int[30]);
int limit;
void main ()
{
     int a, num[30];
     clrscr ();
     printf ("\nProgram for sorting numbers in Ascending order");
     printf ("\n\n\nHow many numbers you are going to enter?\n");
     scanf ("%d", &limit);
     printf ("\nPlease enter the numbers\n");
     for (a = 0; a < limit; a++)
    {
        scanf ("%d", &num[a]);
     }
     ascending (num);
     getch ();
}

void ascending (int n[30])
{
     int a, b, temp;
     for (a = 0; a < limit; a++)
     {
          for (b = 0; b < limit; b++)
          {
               if (n[a] < n[b])
               {
                     temp = n[a];
                     n[a] = n[b];
                     n[b] = temp;
                }
           }
     }
     printf ("\nAscending order of the number:-\n");
     for (a = 0; a < limit; a++)
     {
          printf ("\n%d", n[a]);
     }
}