Code:
#include<stdio.h>
int num[5][2];
int x,y,a,b,low;

main()
{
clrscr();
for(x=0;x<=4;x++)
   for(y=0;y<=1;y++){
   printf("Enter number: ");
   scanf("%d",&num[x][y]);
   }

printf("\nThe number from highest to lowest are: ");
{
for(x=0;x<=4;x++)
  for(y=0;y<=1;y++)
  {
     for(a=x+1;a<=4;a++)
       for(b=y+1;b<=1;b++)
       {
           if(num[x][y]>=num[a][b]){low=num[x][y];
                                                  num[x][y]=num[a][b];
                                                  num[a][b]=low;
                                                 }
        }
}
      for(x=0;x<=4;x++)
          for(y=0;y<=1;y++){
          printf("%d",num[x][y]);
          }
 getch();
}

Last edited by shabbir; 27Jun2007 at 08:17.. Reason: Code block - http://www.go4expert.com/forums/misc.php?do=bbcode#code