title: Can't remove the trailing plus sign in an amount decomposition
body: <p>I have a simple program in which you input a value in a (Bulgarian) currency and it shows you the amount split in banknotes in the most economically way. For example for an amount of <code>91</code>, it should print <code>1*50 + 2*20 + 1</code></p>
  
  <p>Well, the problem is that when you input a small amount like 20 for example in the output there is a trailing "+" at the end (e.g. <code>1*20 +</code> instead of <code>1*20</code>). I would like to know how to not output the number if it's alone. <code>Levove</code> is the Bulgarian currency unit.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      unsigned int Amount;
      cout &lt;&lt; "Enter the amount of levove: ";
      cin &gt;&gt; Amount;
      unsigned int Fifty = 50;
      unsigned int Twenty = 20;
      unsigned int Ten = 10;
      unsigned int Five = 5;
      unsigned int Two = 2;
      unsigned int One = 1;
      unsigned int Levove = Amount;
  
      cout &lt;&lt; Suma &lt;&lt; " = ";
  
      if (Levove / Fifty == 0)
      {
      }
      else 
          if (Levove / Fifty == 1)
      {
          cout &lt;&lt; Levove / Fifty &lt;&lt; "*" &lt;&lt; Fifty &lt;&lt; "+";
      }
      else
      {
          cout &lt;&lt; Levove / Fifty &lt;&lt; "*" &lt;&lt; Fifty &lt;&lt; "+";
      }
          Levove %= Fifty;
  
      if (Levove / Twenty == 0)
      {
      }
      else if (Levove / Twenty == 1)
      {
          cout &lt;&lt; Levove / Twenty &lt;&lt; "*" &lt;&lt; Twenty &lt;&lt; "+";
      }
      else
      {
          cout &lt;&lt; Levove / Twenty &lt;&lt; "*" &lt;&lt; Twenty &lt;&lt; "+";
      }
          Levove %= Twenty;
  
  
      if (Levove / Ten == 0)
      {
      }
      else if (Levove / Ten == 1)
      {
          cout &lt;&lt; Levove / Ten &lt;&lt; "*" &lt;&lt; Ten &lt;&lt; "+";
      }
      else
      {
          cout &lt;&lt; Levove / Ten &lt;&lt; "*" &lt;&lt; Ten &lt;&lt; "+";
      }
          Levove %= Ten;
  
  
      if (Levove / Five == 0)
      {
      }
      else if (Levove / Five == 1)
      {
          cout &lt;&lt; Levove / Five &lt;&lt; "*" &lt;&lt; Five &lt;&lt; "+";
      }
      else
      {
          cout &lt;&lt; Levove / Five &lt;&lt; "*" &lt;&lt; Five &lt;&lt; "+";
      }
          Levove %= Five;
  
      if (Levove / Two == 0)
      {
      }
      else if (Levove / Two == 1)
      {
          cout &lt;&lt; Levove / Two &lt;&lt; "*" &lt;&lt; Two &lt;&lt; "+";
      }
      else
      {
          cout &lt;&lt; Levove / Two &lt;&lt; "*" &lt;&lt; Two &lt;&lt; "+";
      }
          Levove %= Two;
  
  
      if (Levove / One == 0)
      {
      }
      else if (Levove / One == 1)
      {
          cout &lt;&lt; Levove / One &lt;&lt; "*" &lt;&lt; One;
      }
      else
      {
          cout &lt;&lt; Levove / One &lt;&lt; "*" &lt;&lt; One;
      }
          Levove %= One;
  
  
      return 0;
  }
  </code></pre>