​write a program to find max and mini values for reverse order in c++

how to find a maximum and minimum values usin of array in c++ 

its a simple and very easy process

frist of all you open your compiler

i recomend you cxxdriod compiler is very easy to use run without internet.

1.open compiler

2.slect your language to write program i.e java c++ html etc.

3.write header file

4.initalize

5.declear 

6.loop

7.condition

8.while

9.cout<<

10.cin>>

return 0

}

For example 

see this program 

this program here two conditions

1.frist show real value

2. secend is that show values in reverse order 

program is

#include <iostream>

using namespace std;

int main()

{

    int s,array[5];

    for(s=0;s<=5;s++)

    {

        cout<<"enter the value of array=";

        cin>>array[5];

    }

    cout<<"Real status"<<endl;

    for(s=0;s<=5;s++)

    {

        cout<<array[5]<<" ";

    }

    cout<<endl<<"Reverse"<<endl;

    for(s=5;s>=0;s--)

    {

        cout<<array[5]<<"";

    }

    return 0;

}