Write a program that loads a 10-element array with random integers from 1 to 100
ID: 3620851 • Letter: W
Question
Write a program that loads a 10-element array withrandom integers from 1 to 1000. The program will not accept any input from the user. For each value, print the value, number of characters
in that value, and a running total of the number of
characters printed. Use the %n conversion specifier to
determine the number of characters output for each value.
The program should generate a new set of random numbers each time it is run. For example the program should generate something like this:
Value Characters Total Characters
142 3 3
1000 4 7
963 3 10
6 1 11
27 2 13
9999 4 17
1 1 18
500 3 21
99 2 23
500 3 26