printing an error message
<p>Hey guys this is my program, however I want to print out an error statement if the user enters a bet greater than 100. In my program so far I did a do while loop but I want to actually print an error message saying "Bet amount must be less than 100". If anyone could help that would great. Thanks</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std ;

int GetBet ();
string PullOne ();
int GetPayMultiplier (string s1, string s2, string s3);
void Display (string s1, string s2, string s3, int winnings);

int main ()
{
   int betamount;
   string s1;
   string s2;
   string s3;
   int winnings;
   betamount= GetBet();
   while  (betamount !=0)
   {
      s1=PullOne();
      s2= PullOne ();
      s3= PullOne ();
      winnings = betamount * GetPayMultiplier(s1, s2, s3);
      Display(s1, s2, s3, winnings);
      betamount= GetBet();
   }
}

int GetBet ()
{
   int betamt;
   do
   {
      cout &lt;&lt; "Enter Bet amount from 0 to 100. Enter 0 to quit" &lt;&lt;endl;
      cin &gt;&gt; betamt;
   }

   while (betamt &gt; 100);

   return betamt;
}

string PullOne ()
{
   int chance;
   string slots[4] = {"Bar", "7", "cherries", "space"};
   chance= rand() %4;
   return slots [chance];
}

int GetPayMultiplier (string s1, string s2, string s3)
{
   int multiplier;
    string slots[4] = {"Bar", "7", "cherries", "space"};

   if (s1== slots[2] &amp;&amp; s2 != slots[2])
      multiplier = 3;
   else if (s1 == slots[2] &amp;&amp; s2== slots [2] &amp;&amp; s3 != slots[2])
      multiplier =10;
   else if (s1 == slots[2] &amp;&amp; s2 == slots[2] &amp;&amp; s3== slots[2])
      multiplier = 20;
   else if ( s1== slots[0] &amp;&amp; s2 == slots[0] &amp;&amp; s3== slots[0])
      multiplier = 35;
   else if ( s1 == slots[1] &amp;&amp; s2== slots[1] &amp;&amp; s3 == slots[1])
      multiplier = 50;
   else 
      multiplier=0;

   return multiplier;
}

void Display (string s1, string s2, string s3, int winnings)
{
   cout &lt;&lt; s1 &lt;&lt; "  " &lt;&lt; "   " &lt;&lt; s2 &lt;&lt; "   " &lt;&lt; s3 &lt;&lt; endl;
   if( winnings==0)
      cout &lt;&lt; "Sorry You Lose" &lt;&lt; endl;
   else 
      cout &lt;&lt; "Congratulations you have won " &lt;&lt; winnings &lt;&lt; " dollars"&lt;&lt; endl;
}
</code></pre>
