View Code of Problem 75

#include <stdio.h>
void main()
{
	int a[66];
	int i,j,temp;
	for(i=0;i<10;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<10;i++)
	{
		for(j=0;j<10;j++)
		{
			if(a[j]>a[i])
			{
				temp=a[i];
				a[i]=a[j];
				a[j]=temp;
			}
		}
	}
	for(i=0;i<10;i++)
	{
		printf("%d",a[i]);
		printf("\n");
	}
}

Double click to view unformatted code.


Back to problem 75