daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     cout << "Histograms:" << endl << endl;
  2.    
  3.     for (count = 0; count < numChoices; count ++)
  4.     {
  5.         cout << count + 1 << ": ";
  6.        
  7.         even = ( (int) percent + 0.5) / 2;
  8.        
  9.         if (even > 0)
  10.         {
  11.             for (stars = 0; stars < even; stars ++)
  12.             {
  13.                 cout << "*";
  14.             }
  15.        
  16.             if ((int)(percent + 0.5) % 2)
  17.             {
  18.                 cout << "+";
  19.             }
  20.             cout << endl;
  21.         }
  22.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top