title: Sum of first and last digit of a number
body: <p>The problem is to find sum of first and second digit of a number.
  If number is smaller than 10 then print number itself.
  I wrote this code but i don't know why output is wrong.</p>
  
  <pre><code>#include &lt;iostream&gt;
   using namespace std; 
  int main()
  {
      int t,a,n,l;
       cin&gt;&gt;t;
      while(t--)
      {
          cin&gt;&gt;n;
          if(n&lt;10)
          {
             cout&lt;&lt;n;
          }
          else
          {
           a=n%10;
           l=n/10;
          cout&lt;&lt;a+l&lt;&lt;endl;
          }
      }
      return 0;
  }
  </code></pre>