title: Output Modification required
body: <p>I want to print out dividends that exist in a range and their sum. let's say I give a range between 15 and 85 and print numbers divisible by 4. it works fine. but I want output in a specific shape such that &quot; 16 + 32 + 48 + 64 + 80 =240.
  The problem I am facing is that when I print &quot;+&quot; with the printf statement, the  + signs also come after the last output such as 80 +. which is wrong. kindly guide me through it.
  The current output is :  16 + 32 + 48 + 64 + 80 + =240</p>
  <pre><code> #include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  int main()
  {
  int first=0;
  int second=0;
  printf(&quot;Enter first number :&quot;);
  scanf_s(&quot;%d&quot;,&amp;first);
  printf(&quot;Enter second number :&quot;);
  scanf_s(&quot;%d&quot;,&amp;second);
  first++;
  int sum=0;
  while(first&lt;=second)
  {
      if(first%4==0 &amp;&amp; first%16==0)
      {
          printf(&quot;%d  &quot;,first);
          printf(&quot;+ &quot;);
          sum+=first;
      }
      first++;
  }
  printf(&quot;  =%d &quot;,sum);
  }
  </code></pre>