Write a program to print a histogram


Discuss the below:

Q: Write a program that prints a histogram of N random integers from 0 through 10, where N is provided by the user.

Enter an integer > 0: 13
Enter an integer > 0: 15

Random #s...
4 7 2 1 6 9 0 6 4 10
9 4 8 4 1

Histogram...
*
*
* * * *
* * * * * * * * *
0 1 2 3 4 5 6 7 8 9 10

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program to print a histogram
Reference No:- TGS01936987

Now Priced at $25 (50% Discount)

Recommended (95%)

Rated (4.7/5)