I need to make an array of 10 cells using random numbers and then print it backwards and forwards. Also it can only have values 0 to 100.
I still need correct the range and print it backwards.
This is what I have so far. Help?Lab7.c
Code:#include <stdio.h>#include <stdlib.h> int main () { int b[10]; srand(0); int i; for (i = 0; i < 10; i++) { b[i] = rand(); } printf("The value of my array is %d\n", b[i]); printf("The value of my array backwards is %d\n", b[i]); return 0; }