write a c program to solve the following problem Upload your
Solution
#include <stdio.h>
 #include <stdlib.h>
 #define SIZE 10
int main(void)
 {
 srand(time(NULL));
 int k,num;
 for(k=0;k<150;k++){
 num = 1 + rand()%99;
    printf(\"%d\ \",num);
   
 }
    int n[SIZE] = {9, 3, 15, 7, 1, 9, 13, 5, 17, 1};
    int i, j;
    // display the table header...
    printf(\"%s%13s%17s\ \",\"Element/index\", \"Value\", \"Histogram\");
    // do the iteration, outer for loop, read row by row...
    for(i=0; i <= (SIZE-1); i++)
    {
        printf(\"%9d%15d \", i, n[i]);
        // inner for loop, for every row, read column by column and print the bar...
        for(j = 1; j<= n[i]; j++)
        // print the \'bar\', and repeat...
        printf(\"*\");
        // go to new line for new row, and repeats...
        printf(\"\ \");
    }
    return 0;
 }

