Test 1

printable version

X1: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Problem X1.1

[10 pts] Below is the beginning of a program to fill an array with 100 numbers entered by the user. Complete the program so that it then displays the numbers, one per line, in reverse order from how the user entered them.

int main() {
    int num[100];
    int i;

    for (i = 0i < 100i++) {
        scanf("%d", &(num[i]));
    }