I want a program that create an array of random numbers between 1 and 50 , and prints a histogram which display how many integers are in each 'decade' ( use a star for each decade ), as it shown down:
the output
-------------------------------------------------------------
How many random numbers?
20
6 26 48 13 48 28 10 28 32 45 18 21 3 7 30 9 38 3 36 15
1-10 |******
11-20 |***
21-30 |****
31-40 |****
41-50 |***
--------------------------------------------------------------
plz help me I'll be thankful