title: How is "cin>>" different from "cin.get"? OR Is it not?
body: <p>I was coding a program for Multiplication Tables... And I used <code>a=cin.get();</code> and <code>cin&gt;&gt;a;</code> to input the value. I got different results with each. The code is:</p>
  
  <pre><code>#include"pch.h"
  #include&lt;iostream&gt;
  
  using namespace std;
  
  int main()
  
  {
  
  float a, b;
  
  cout &lt;&lt; "Enter the number:";
  a = cin.get();
  cout &lt;&lt; "The Table for the given number is:" &lt;&lt; endl;
  for (b = 1; b &lt;= 10; ++b)
  {
      cout &lt;&lt; a &lt;&lt; " * " &lt;&lt; b &lt;&lt; " = " &lt;&lt; a * b &lt;&lt; endl;
  }
  
  return 0;
  }
  </code></pre>
  
  <p>And the other one is:</p>
  
  <pre><code>#include"pch.h"
  #include&lt;iostream&gt;
  
  using namespace std; 
  
  int main()
  
  {  
  
  float a, b;
  
  cout &lt;&lt; "Enter the number:";
  cin &gt;&gt; a;
  cout &lt;&lt; "The Table for the given number is:" &lt;&lt; endl;
  for (b = 1; b &lt;= 10; ++b)
  {
      cout &lt;&lt; a &lt;&lt; " * " &lt;&lt; b &lt;&lt; " = " &lt;&lt; a * b &lt;&lt; endl;
  }
  
  return 0;
  }
  </code></pre>
  
  <p>The one with <code>cin&gt;&gt;a;</code> worked fine. 
  I once read that <code>cin.get()</code> is also used to get the value of the variable. Does it have some other use instead of this? </p>
  
  <p>Thanks,</p>