arrays additional and average is not showing output in c program but is is asking for the 2 inputs : <pre><code>#include&lt;stdio.h&gt;
main()
{
    int scores[3], sum;
    float avg;
    printf("enter the value for scores\n");
    scanf("%d\n %d\n %d\n",&amp;scores[0],&amp;scores[1],&amp;scores[2]);
    sum=scores[0]+scores[1]+scores[2];
    avg=sum/3;
    printf("The sum is :%d\n The avg is :%f\n",sum,avg);
    system("pause");
}
</code></pre>

<p>When I am running the program then program is asking for the input but it is not showing the output.</p>
