help please ^^
create another array, call it ArrayNum, then store the value of NumArray in reverse order. display the value in ArrayNum.
    #include <stdio.h>
    int main(void)
    {
        int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62};
        int ArrayNum[10];
        int a;

        for(a=o; a<10; a++)
        {
        ArrayNum[a]=numArray[9];
        Printf("%d", ArrayNum[a]);
            numArray[9]--;
            }
    }



    or i could display it like this 

    int main()
    {
    int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62};
    int ArrayNum[] = {62, 8, 4, 14, 34, 7, 5, 23, 67, 2};

    for(a=o; a<10; a++)
    {
    printf("Value in ArrayNum\n %d", ArrayNum[a]);
    }
    return 0;
    }

2, 67, 23, 5, 7, 34, 14, 4, 8, 62};

Hey,

Think something like this is what you mean.. Obviously, change it slightly!

#include <iostream>

using namespace std;
int main(int argc, char *argv[]) {

int numArray[10] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62};
int arrayNum[10];

int num = 10;
int j=0;

for(int i=10; (i >= 0); i--)
{
    arrayNum[j-1] = numArray[i];
    if(j >= 10)
    break;
    j++;
}
cout << "Actual Order: ";
for(int k=0; (k < 10); k++)
{
    cout << numArray[k] << ' ';
}
cout << endl;
cout << "Reverse Order: ";
for(int i=0; (i < 10); i++)
{
    cout << arrayNum[i] << ' ';
}

}

Output: --

Actual Order: 2 67 23 5 7 34 14 4 8 62
Reverse Order: 62 8 4 14 34 7 5 23 67 2

Hope this helps you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.