Short programming: need help with pointers
<pre><code>#include&lt;stdio.h&gt;    
int main()
{
    int i=10,a;
    while(i&gt;0)
    {
        scanf("%d",&amp;a);
        printf("%d\n",(a+a*a)/2);
        i--;
    }
}
</code></pre>

<p>Now what i want to ask is how to make it shorter? Maybe some way using pointers instead of variables? Maybe this: <code>(a+a*a)/2</code> can be done better?</p>
