Take some Random numbers as a input print the numbers in descending order : #

    include<iostream>
    using namespace std;
    int print_max(int a, int b);
    main()
    {
    	int low=0,max,min;
    	int num[5];
    	for(int i=1; i<=5; i++)
    	{
    	cout<<"Plz Enter the number "<<endl;
    	cin>>num[i];
    	low=print_max(num[i],low); 
    	max=print_max(num[i],low);
    	
    	}
    	cout<<max;
    	for(int i=1; i<=5; i++)
        {
        	if(max>num[i])
        	min=num[i];
        	cout<<min;
    	}
    }
    int print_max(int a,int b)
    {
    	int max;
    	if (a>b)
    	{max=a;
    	return max;}
    	else
    	{
    	max=b;
    	return max;
    	}
    }
I wanna convert some random number which i have taken as a input in the descending order "low" will save the greater number and then "max"will compare all the value with low and will save the greater value .then i inserted the condition of "if" in the loop it will compare all the values of input with "max" and find the minimum values but it do not give the fine output. 