title: C - getting multiple int input in one scan while ignoring whitespaces
body: <p>The first line will contain a message prompt to input the number when I'm in whole.
  The second line will contain a message prompt to input the number when I'm in parts.
  The last line contains &quot;Yes&quot; if I'm the same when I'm whole and when I'm in parts and &quot;No&quot; otherwise.</p>
  <p>Enter·the·number·(whole):·41598</p>
  <p>Enter·the·number·(parts):·4·1·5·9·8</p>
  <p>Yes</p>
  <p>I've been stuck with this practice problem for quite a while now, and I wanna know what else can I do, looping with a string is one of my ideas but I can't get it to work, and I think there would be an easier way to solve this.</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int whole, parts, totalparts = 0;
  
      printf(&quot;Enter the number (whole): &quot;);
      scanf(&quot;%d&quot;, &amp;whole);
      printf(&quot;Enter the number (parts): &quot;);
      scanf(&quot;%d&quot;, parts);
      
      if (whole == totalparts)
          printf(&quot;Yes&quot;);
      else
          printf(&quot;No&quot;);
      
      return 0;
  }
  </code></pre>