Histogram
  • One interesting application of computers is drawing graphs and bar charts
    (sometimes called “histograms”). Write a program that reads five numbers (each
    between 1 and 30). For each number read, your program should print a line
    containing that number of adjacent asterisks. For example, if your program reads
    the numbers as 3 7 2 6 1, then it should display the following:


    3 ***

    7 *******

    2 **

    6 ******

    1 *

No Comments..!

Change Subject:


Total Duration: 22:14:02