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;
}
juljan30 0 Newbie Poster
phorce 131 Posting Whiz in Training Featured Poster
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.